From d184f81486733cf19178fb65a1a6b0c4d4a6ba53 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Mon, 4 Mar 2024 11:34:32 +0100 Subject: examples/buildpackage-pdebuild: add support for 'nodoc'. --- debian/copyright | 2 +- examples/buildpackage-pdebuild | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debian/copyright b/debian/copyright index 3aab891..e642066 100644 --- a/debian/copyright +++ b/debian/copyright @@ -55,7 +55,7 @@ Copyright: 2009, gregor herrmann License: GPL-2+ Files: examples/buildpackage-pdebuild -Copyright: 2010-2022, gregor herrmann +Copyright: 2010-2024, gregor herrmann 2011-2012, Salvatore Bonaccorso License: Artistic or GPL-1+ diff --git a/examples/buildpackage-pdebuild b/examples/buildpackage-pdebuild index fb07926..2b909eb 100755 --- a/examples/buildpackage-pdebuild +++ b/examples/buildpackage-pdebuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2010-2022, gregor herrmann +# Copyright 2010-2024, gregor herrmann # Copyright 2011-2012, Salvatore Bonaccorso # # This program is free software; you can redistribute it and/or modify it @@ -43,13 +43,14 @@ ME="$(basename $0)" # v = -vX # t = notest # n = noopt +# o = nodoc # p = nostrip # h = hardening # d = DH_VERBOSE # H = hookdir # A = host-Arch # c = -nc # enable by default? -while getopts D:bagScj:siwv:tnphdHA: O; do +while getopts D:bagScj:siwv:tnophdHA: O; do case "$O" in # pbuilder example #P) @@ -103,6 +104,10 @@ while getopts D:bagScj:siwv:tnphdHA: O; do DEB_BUILD_OPTIONS="$DEB_BUILD_OPTIONS nocheck" DEB_BUILD_PROFILES="$DEB_BUILD_PROFILES nocheck" ;; + o) + DEB_BUILD_OPTIONS="$DEB_BUILD_OPTIONS nodoc" + DEB_BUILD_PROFILES="$DEB_BUILD_PROFILES nodoc" + ;; n) DEB_BUILD_OPTIONS="$DEB_BUILD_OPTIONS noopt" ;; -- cgit v1.2.3