]> git.donarmstrong.com Git - debhelper.git/commitdiff
r48: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 04:42:15 +0000 (04:42 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 04:42:15 +0000 (04:42 +0000)
31 files changed:
debian/changelog
debian/rules
dh_builddeb.1
dh_compress
dh_fixperms
dh_gencontrol.1
dh_installchangelogs.1
dh_installcron.1
dh_installdeb.1
dh_installdirs
dh_installdirs.1
dh_installdocs.1
dh_installexamples
dh_installexamples.1
dh_installinit
dh_installinit.1
dh_installmanpages
dh_installmanpages.1
dh_installmenu
dh_installmenu.1
dh_lib
dh_md5sums.1
dh_movefiles.1
dh_shlibdeps.1
dh_strip.1
dh_suidregister
dh_suidregister.1
dh_testdir.1
dh_testroot.1
dh_undocumented
dh_undocumented.1

index 6eab06d410fabe461aa7ab875c3aa749f975d20e..ea45ec9dc690cacd78ff3b4ea5d6f851efbfd828 100644 (file)
@@ -1,3 +1,17 @@
+debhelper (0.53) unstable; urgency=low
+
+  * dh_installmanpages: ignore all man pages installed into debian/tmp
+    type directories. (#16933)
+  * dh_*: set up alternative name for files like debian/dirs; you may now
+    use debian/<mainpackage>.dirs too, for consistency. (#16934)
+  * dh_installdocs: if a debian/package.copyright file exists, use it in
+    preference to debian/copyright, so subpackages with varying copyrights
+    are supported. (#16935)
+  * Added dh_movefiles, which moves files out of debian/tmp into subpackages.
+    (#16932)
+
+ -- Joey Hess <joeyh@master.debian.org>  Sat, 10 Jan 1998 11:30:12 -0500
+
 debhelper (0.52) unstable; urgency=low
 
   * dh_compress: compress file belongs in debian/. It was looking in ./
index 8bbcad55e22fe0833fb6598d4c7d48e3510a04b3..892f7e69985681a3af109db3413b874ecaf26b67 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 # Note that I have to refer to debhelper programs with ./, to make sure
 # I run the most current ones. That's also why there is a symlink to the 
-# current dh_lib in this debian/ directory.
+# current dh_lib and the current dh_getopt.pl in this debian/ directory.
 
 # If any automatic script generation is done in building this package, 
 # be sure to use the new templates from this package.
@@ -37,9 +37,9 @@ binary-indep: build
        ./dh_clean -k
        ./dh_installdirs usr/bin usr/lib/debhelper
 
-       find . -perm +111 -maxdepth 1 -type f \
+       find . -perm +111 -maxdepth 1 -type f -not -name "*.pl" \
                -exec install -p {} debian/tmp/usr/bin \;
-       cp dh_lib debian/tmp/usr/lib/debhelper
+       cp -a dh_lib dh_getopt.pl debian/tmp/usr/lib/debhelper
        cp -a autoscripts debian/tmp/usr/lib/debhelper
 
        ./dh_installdocs TODO README
index 8a51a8f4f8797f77a09347bc3fd1b06fffe01f2d..9d52b3ab42d41dc5e27fa24b10c5e4048f848684 100644 (file)
@@ -10,19 +10,19 @@ dh_builddeb simply calls
 to build a .deb package or packages.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory, etc.
 .TP
-.B \-a
+.B \-a, \--arch
 Build all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Build all architecture independent packages.
 .TP
-.B \-ppackage
+.B -ppackage, \--package=package
 Build the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory.
 .SH NOTES
 The
index 4626ed09a180f131799986ea4bbbca7b547c14fb..58eb30f4d92ba103fb417ed9d03d6e6c0c2aaf2c 100755 (executable)
@@ -8,17 +8,17 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
+       compress=`pkgfile $PACKAGE compress`
 
-       # Run the file name gatering commands from within the directory
+       # Run the file name gathering commands from within the directory
        # structure that will be effected.
        olddir=`pwd`
        doit "cd $TMP"
 
-       if [ -f $olddir/debian/${EXT}compress ]; then
+       if [ "$compress" ]; then
                # The config file is a sh script that outputs the files to be compressed
                # (typically using find).
-               files=`sh $olddir/debian/${EXT}compress 2>/dev/null`
+               files=`sh $olddir/$compress 2>/dev/null`
        else
                # By default fall back on what the policy manual says to compress.
                files=`
index 32c9dbefaa2ed62cf5bf451d2dff8f2c5e433d72..0d667fd3fed241dc4290756172c6bc362ce40a48 100755 (executable)
@@ -7,7 +7,6 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
 
        # General things..
        if [ -d $TMP ]; then
index 7b78248fb47bd3427497364742de013ed3715c04..484add0e298d8cc2b26292c1ff30dcd046f0e012 100644 (file)
@@ -16,22 +16,22 @@ You may prefer to simply run
 by hand.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Install files for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Install files for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Install files for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .TP
-.B \-uparams
+.B \-uparams, \--update-rcd-params=params
 Pass "params" to 
 .BR dpkg-gencontrol (1)
 .SH NOTES
index 8c42a0111070e36e1248344755666405e77057e0..4ec5ce91c79eee21acd689fa37f5fd3f504b970f 100644 (file)
@@ -3,7 +3,7 @@
 dh_installchangelogs \- install changelogs into package build directories
 .SH SYNOPSIS
 .B dh_installchangelogs
-.I "[-v] [-a] [-i] [-ppackage] [-Ptmpdir] upstream"
+.I "[-v] [-a] [-i] [-ppackage] [-Ptmpdir] [upstream]"
 .SH "DESCRIPTION"
 dh_installchangelogs is a debhelper program that is responsible for installing
 changelogs into package build directories.
@@ -18,20 +18,23 @@ not a native debian package, then this upstream changelog will be installed
 as usr/doc/package/changelog in the package build directory.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Install changelogs for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Install changelogs for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Install changelogs for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
+.TP
+.B upstream
+Instal this file as the upstream changelog.
 .SH NOTES
 The
 .B \-a
index 3407a62f521b285c5b9cc95b6d76178553c06ea4..f090420b609295b4e6e2030c1e87a7d8d1eae0c1 100644 (file)
@@ -14,19 +14,19 @@ debian/package.cron.daily, where "package" is replaced with the name of the
 binary package this cron script goes into.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Install cron files for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Install cron files for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Install cron files for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .SH NOTES
 The
index acb1a7f084cfb1d194fd53c551fc6d671b08caac..bb6582623d499d1532212f8cd8baad06c54a9b85 100644 (file)
@@ -34,19 +34,19 @@ programs, such as
 , and are shell script fragments.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Install files for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Install files for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Install files for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .SH NOTES
 The
index 1ef311e7113e5c50d628ec69f0103ff7d65e4ace..e733e7ce323fd9e35164e9a1fb73eecab90d23f9 100755 (executable)
@@ -7,7 +7,7 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
+       file=`pkgfile $PACKAGE dirs`
 
        if [ ! -d $TMP ]; then
                doit "install -d $TMP"
@@ -15,8 +15,8 @@ for PACKAGE in $DH_DOPACKAGES; do
 
        dirs=""
 
-       if [ -e debian/${EXT}dirs ]; then
-               dirs=`tr "\n" " " < debian/${EXT}dirs`
+       if [ "$file" ]; then
+               dirs=`tr "\n" " " < $file`
        fi
 
        if [ \( "$PACKAGE" = "$DH_FIRSTPACKAGE" -o "$DH_PARAMS_ALL" \) \
index 0fba87de8fde522dad77d56377c237deb8e79833..56c641b39190c60e992bb66e7a7ed34015cac1dc 100644 (file)
@@ -13,10 +13,9 @@ build directory of the first package dh_installdirs is told to act on. By
 default, this is the first binary package in debian/control, but if you use 
 -p, -i, or -a flags, it will be the first package specified by those flags.
 .P
-A file named debian/dirs (for the first binary package in debian/control),
-or debian/package.dirs (for each additional package in debian/control) can
-list other directories to be created. Separate the directory names with
-whitespace.
+A file named debian/package.dirs (debian/dirs may be used for the first
+binary package in debian/control) can list other directories to be created.
+Separate the directory names with whitespace.
 .P
 Be sure to only use directory names relative to the package build
 directory. Ie, "/usr/bin" should not be used, use "usr/bin" instead.
index ab9ed47679b504c237eace0d1272624233e8628b..6a0290a45f1ef65724e3cfbbdc5fac12d426306f 100644 (file)
@@ -23,9 +23,8 @@ debian/control, if dh_installdocs is acting on that package. Note that
 debian/TODO will be installed named TODO.Debian, if the package is not a 
 debian native package.
 .P
-A file named debian/docs (for the first binary package in debian/control),
-or debian/package.docs (for each additional package in debian/control) can
-list other files to be installed.
+A file named debian/package.docs (debian/docs may be used for the first
+binary package in debian/control) can list other files to be installed.
 .SH OPTIONS
 .TP
 .B \-v
index 423c647a04ca893e7e262b193afb680d1a57236c..623d882bf47a646ed99823eac14b149cb90136b4 100755 (executable)
@@ -8,12 +8,12 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
+       file=`pkgfile $PACKAGE examples`
 
        examples=""
 
-       if [ -e debian/${EXT}examples ]; then
-               examples=`tr "\n" " " < debian/${EXT}examples`
+       if [ "$file" ]; then
+               examples=`tr "\n" " " < $file`
        fi
 
        if [ \( "$PACKAGE" = "$DH_FIRSTPACKAGE" -o "$DH_PARAMS_ALL" \) \
index e46ed826fa63944c56401c97d42ffa3314fcf4ed..e038faf7881d9697306141877e8ac97831b129f3 100644 (file)
@@ -13,9 +13,8 @@ package dh_installdirs is told to act on. By default, this is the first
 binary package in debian/control, but if you use -p, -i, or -a flags, it
 will be the first package specified by those flags.
 .P
-A file named debian/examples (for the first binary package in debian/control),
-or debian/package.examples (for each additional package in debian/control) can
-list other files to be installed.
+A file named debian/package.examples (debian/examples may be used for the
+first binary package in debian/control) can list other files to be installed.
 .SH OPTIONS
 .TP
 .B \-v
index 207131cdd34f19c162764f439bf2268eb1edd8cc..803ef81f59548717b2f45b60520ba9dcf9275279 100755 (executable)
@@ -6,12 +6,6 @@
 PATH=debian:$PATH:/usr/lib/debhelper
 . dh_lib
 
-# This works around a bug in getopt(1), where it ignores some parameters.
-# Sigh.
-if [ "$*" ]; then
-       DH_U_PARAMS="$DH_U_PARAMS $*"
-fi
-
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
        init=`pkgfile $PACKAGE init`
index 13f875495a1fcbfd640f9fb893e9e04c4ba7136c..6a2ab3211dadbea94b67ed624b59e6162cda9f11 100644 (file)
@@ -12,13 +12,10 @@ It also automatically generates the postinst and postrm and prerm commands
 needed to set up the symlinks in /etc/rc*.d/ and to start and stop the init
 scripts.
 .P
-If a file named debian/init exists, then it is installed into
-etc/init.d/package in the package build directory (with "package" replaced
-by the package name, unless the -d flag is specified, see below)
-.P
-For packages other than the first binary package listed in
-the control file, use debian/package.init instead (replace "package" with 
-the name of the package.)
+If a file named debian/package.init exists, then it is installed into
+etc/init.d/package in the package build directory, with "package" replaced
+by the packagename. (You may use debian/init for the first binary package
+listed in the control file.)
 .SH OPTIONS
 .TP
 .B \-v
index 4a0ffb47e49a724263e14ff608ee48b53b24424d..9bcd891015a5e311aa986151ce231f433290c7da 100755 (executable)
@@ -13,7 +13,9 @@ for PACKAGE in $DH_DOPACKAGES; do
        # Find all filenames that look like man pages.
        # .ex files are examples installed by deb-make, we don't want those, or
        # .in files, which are from configure.
-       for file in `find * -name "*.[1-9]*" ! -name "*.ex" ! -name "*.in" | grep -v ^$TMP`; do
+       # We also need to exclude all debian/tmp type dirs.
+       EXCLUDE=`grep ^Package: debian/control | cut -d " " -f 2 | tac | tr "\n" "|"`
+       for file in `find * -name "*.[1-9]*" ! -name "*.ex" ! -name "*.in" | egrep -v "^debian/(${EXCLUDE}tmp)"`; do
                # Make sure file thinks they are man pages.
                if file $file|grep -q roff; then
                        if echo $file|grep -q /; then
index 7687ed9c7dff96a277503252a1671d0422798822..b8b580e1dc35acd233f15653c857e82068bb2779 100644 (file)
@@ -65,6 +65,9 @@ are not automatically installed.
 Files specified as parameters that contain spaces in their filenames will
 not be processed properly.
 .P
+By default, all man pages are installed into all binary packages, which is
+almost never what you really want (use -p to work around this).
+.P
 This is a "Do what I Mean" type program - you have been warned!
 .SH AUTHOR
 Joey Hess <joeyh@master.debian.org>
index 5071a2f3a2760d7e3e142a7e4f64012831b550cb..9fbbfb215c61d0d5927ff67cf1c02557b0beea95 100755 (executable)
@@ -13,27 +13,28 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
+       menu=`pkgfile $PACKAGE menu`
+       menu_method=`pkgfile $PACKAGE menu-method`
 
-       if [ -e debian/${EXT}menu ]; then
+       if [ "$menu" ]; then
                if [ ! -d $TMP/usr/lib/menu ]; then
                        doit "install -d $TMP/usr/lib/menu"
                fi
-               doit "install -p -m644 debian/${EXT}menu $TMP/usr/lib/menu/$PACKAGE"
+               doit "install -p -m644 $menu $TMP/usr/lib/menu/$PACKAGE"
 
                # Add the scripts if a menu-method file doesn't exist.
                # The scripts for menu-method handle everything these do, too.
-               if [ ! -e debian/${EXT}menu-method -a ! "$DH_NOSCRIPTS" ]; then
+               if [ ! "$menu_method" -a ! "$DH_NOSCRIPTS" ]; then
                        autoscript "postinst" "postinst-menu"
                        autoscript "postrm" "postrm-menu"
                fi
        fi
 
-       if [ -e debian/${EXT}menu-method ]; then
+       if [ "$menu_method" ]; then
                if [ ! -d $TMP/etc/menu-methods ]; then
                        doit "install -d $TMP/etc/menu-methods"
                fi
-               doit "install -p debian/${EXT}menu-method $TMP/etc/menu-methods/$PACKAGE"
+               doit "install -p $menu_method $TMP/etc/menu-methods/$PACKAGE"
 
                if [ ! "$DH_NOSCRIPTS" ]; then
                        autoscript "postinst" "postinst-menu-method" "s/#PACKAGE#/$PACKAGE/"
index 11bc71b8f52ce8e3567ea9271991b3af4391d40b..320e1005cf4cb621640d72cb73a24f2608893b46 100644 (file)
@@ -13,17 +13,16 @@ interface with the debian menu package. See
 .BR dh_installdeb (1)
 for an explanation of how this works.
 .P
-If a file named debian/menu exists, then it is installed into
+If a file named debian/package.menu exists, then it is installed into
 usr/lib/menu/package in the package build directory. This is a debian menu
 file.
 .P
-If a file named debian/menu-method exits, then it is installed into
+If a file named debian/package.menu-method exits, then it is installed into
 etc/menu-methods/package in the package build directory. This is a debian
 menu method file.
 .P
-For packages other than the first binary package listed in
-the control file, use debian/package.menu and debian/package.menu-method 
-instead (replace "package" with the name of the package.)
+For the first first binary package listed in the control file, you may use
+debian/menu and debian/menu-method instead.
 .SH OPTIONS
 .TP
 .B \-v
diff --git a/dh_lib b/dh_lib
index 06a4666bfe86a7c7cf4060f240c5246baf373232..020f9e6d79675973058b5b014d7578a9dde01f55 100644 (file)
--- a/dh_lib
+++ b/dh_lib
@@ -1,4 +1,6 @@
 # Library functions for debhelper programs.
+#
+# Joey Hess, GPL copyright 1997, 1998.
 
 # Run a command, and display the command to stdout if verbose mode is on.
 # All commands that modifiy files in $TMP should be ran via this 
@@ -156,92 +158,29 @@ get_arch_indep_packages() {
 
 # Argument processing and global variable initialization is below.
 
-# Parse command line.
-set -- `getopt xvidrnakVAp:P:u:m: $*`
-
-for i; do
-       case "$i"
-       in
-               -v)
-                       DH_VERBOSE=1
-                       shift
-                       ;;
-               -i)
-                       get_arch_indep_packages
-                       DH_DOPACKAGES="$DH_DOPACKAGES $INDEP_PACKAGES"
-                       DH_DOINDEP=1
-                       shift
-                       ;;
-               -a)
-                       get_arch_indep_packages
-                       DH_DOPACKAGES="$DH_DOPACKAGES $ARCH_PACKAGES"
-                       DH_DOARCH=1
-                       shift
-                       ;;
-               -p)
-                       DH_DOPACKAGES="$DH_DOPACKAGES $2"
-                       shift
-                       shift
-                       ;;
-               -n)
-                       DH_NOSCRIPTS=1
-                       shift
-                       ;;
-               -x)     
-                       DH_EXCLUDE=1
-                       shift
-                       ;;
-               -d)
-                       DH_D_FLAG=1
-                       shift
-                       ;;
-               -r)
-                       DH_R_FLAG=1
-                       shift
-                       ;;
-               -k)
-                       DH_K_FLAG=1
-                       shift
-                       ;;
-               -P)
-                       DH_TMPDIR="$2"
-                       shift
-                       shift
-                       ;;
-               -u)
-                       DH_U_PARAMS="$2"
-                       shift
-                       shift
-                       ;;
-               -m)
-                       DH_M_PARAMS="$2"
-                       shift
-                       shift
-                       ;;
-               -V)
-                       DH_V_FLAG=1
-                       shift
-                       ;;
-               -A)
-                       DH_PARAMS_ALL=1
-                       shift
-                       ;;
-               --)
-                       shift
-                       break
-                       ;;
-       esac
+# Check to see if an argument on the command line starts with a dash.
+# if so, we need to pass this off to the resource intensive perl.
+for arg; do
+       if expr "$arg" : '-' >/dev/null ; then
+               parseopt=1
+               break
+       fi
 done
+if [ "$parseopt" ]; then
+       parseopt=""
+       # Parse command line. I wrote a perl program to do this becuase
+       # getopt(1) is so broken. Note: the quotes around $@ are very
+       # important!
+       eval `dh_getopt.pl "$@"`
+       if [ "$DH_PARSE_ERROR" ]; then
+               error "$DH_PARSE_ERROR"
+       fi
+fi
 
 # Get the name of the main binary package (first one listed in
 # debian/control).
 MAINPACKAGE=`grep ^Package: debian/control | cut -d " " -f 2 | head -1`
 
-# Remove leading spaces from DH_DOPACKAGES.
-if expr "$DH_DOPACKAGES" : ' *.*' >/dev/null ; then
-       DH_DOPACKAGES_NEW=`expr "$DH_DOPACKAGES" : ' *\(.*\)'`
-fi
-
 # Check if packages to build have been specified, if not, fall back to 
 # the default, doing them all.
 if [ ! "$DH_DOPACKAGES" ]; then
@@ -266,7 +205,7 @@ for PACKAGE in $DH_DOPACKAGES ; do
 done
 
 # Check to see if: DH_FIRSTPACKAGE is not the MAINPACKAGE, and
-# some command line arguemnts are passed. Display a warning, becuase
+# some command line arguements are passed. Display a warning, becuase
 # debhelper's behaviour has changed in this case.
 if [ "$DH_FIRSTPACKAGE" != "$MAINPACKAGE" -a "$*" ]; then
        echo `basename $0`": Warning: my behavior has changed, and command line" >&2
index 28f7fe4528df900ee521c3de9e15ec5fb28471e2..ab3c2bed33b9dbf57e47f3bc2e9f4bffab0fc919 100644 (file)
@@ -14,23 +14,23 @@ All files in DEBIAN/ are omitted from the md5sums file, as are all conffiles
 The md5sums file is installed with proper permissions and ownerships.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Generate md5sums files for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Generate md5sums files for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Generate md5sums file for the package named "package".
 .TP
-.B \-x
+.B \-x, \--include-conffiles
 Include conffiles in the md5sums list. Note that this is redundant, and
 included elsewhere in debian packages.
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .SH NOTES
 The
index 228f9401f63c7866258afdffc16962ce567e6a2b..c2b0e92a1577f84847e866f0e221c2502f4d54e6 100644 (file)
@@ -14,19 +14,19 @@ Files named debian/package.files list the files to be moved, separated by
 whitespace.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Move files for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Move files for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Move files for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .SH NOTES
 The
index 77d90c2579f203613e9ea5d7fbdd40a8b0b4f745..421a2215d15eb0e3cb09218e13c2c1b6d36063f2 100644 (file)
@@ -17,22 +17,22 @@ prefer to simply run
 by hand.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Install files for all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Install files for all architecture independent packages.
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Install files for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .TP
-.B \-uparams
+.B \-uparams, \--dpkg-shlibdeps-params=params
 Pass "params" to 
 .BR dpkg-shlibdeps (1)
 .SH NOTES
index fa3c76943447de49db306fc70aae1239db3566e2..9cdd85a0f5a7ed3976b78ff7cb923fb685fbf39e 100644 (file)
@@ -13,20 +13,20 @@ It assumes that files that have names like lib*_g.a are static libraries
 used in debugging, and will not strip them.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 .TP
-.B \-a
+.B \-a, \--arch
 Strip files in all architecture dependent packages.
 .TP
-.B \-i
+.B \-i, \--indep
 Strip files in all architecture independent packages (likely, this is
 pointless :-).
 .TP
-.B \-ppackage
+.B \-ppackage, \--package=package
 Strip files for the package named "package".
 .TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
 Use "tmpdir" for package build directory. 
 .SH NOTES
 The
index 3f7622af367806ca255cbf50b1f8068aabd7d860..bc8aa5f26a92294991f088cb293d8427f459aadd 100755 (executable)
@@ -11,12 +11,12 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
        TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
+       suid=`pkgfile $PACKAGE suid`
 
        files=""
 
-       if [ -e debian/${EXT}suid ]; then
-               files=`tr "\n" " " < debian/${EXT}suid`
+       if [ "$suid" ]; then
+               files=`tr "\n" " " < $suid`
        fi
 
        if [ \( "$PACKAGE" = "$DH_FIRSTPACKAGE" -o "$DH_PARAMS_ALL" \) \
@@ -24,7 +24,7 @@ for PACKAGE in $DH_DOPACKAGES; do
                files="$* $files"
        fi
 
-       if [ ! "$files" -a ! -e debian/${EXT}suid ]; then
+       if [ ! "$files" -a ! "$suid" ]; then
                # No files specified (and no empty debian/suid file), so
                # guess what files to process.
                files=`find $TMP -type f -perm +6000`
index ef5b08dcfb0cf1b1e0f516aad1fec874cf8c7233..29fc504b8a380ad15f490e3c3ee0145cf2b94ade 100644 (file)
@@ -16,9 +16,8 @@ package dh_installdocs is told to act on. By default, this is the first
 binary package in debian/control, but if you use -p, -i, or -a flags, 
 it will be the first package specified by those flags.
 .P
-The files debian/suid (for the first binary package in debian/control) or 
-debian/package.suid (for  each  additional package in debian/control) can 
-list other files to be registered.
+Files named debian/package.suid (or debian/suid for the first binary package
+in debian/control) can list other files to be registered.
 .P
 If neither of these methods is used to specify files, dh_suidregister will
 scan the package build directory for files that have suid permissions, and
index c3212301ef4d303797af39af5c20c18fc41f4e0b..17561accceaa77eb28b08505a84f924fe241bb97 100644 (file)
@@ -11,7 +11,7 @@ exists, as well as any other files you specify. If not,
 it exits with an error.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 This currently has no effect.
 .TP
index 78caa7e974786eebf66eee266fe0a43745f00912..605dae4c51eac4e7caacd5cbb1f79c98da02f2e4 100644 (file)
@@ -11,7 +11,7 @@ error. Debian packages must be built as root, though you can use
 to work around this.
 .SH OPTIONS
 .TP
-.B \-v
+.B \-v, \--verbose
 Verbose mode; show all commands that modify the package build directory.
 This currently has no effect.
 .SH ENVIRONMENT
index 31b2f987463b99cf3f049a925a359167d7ffdc21..edd873f79d6647a6822cd0fdd0a3c2e8a11c9087 100755 (executable)
@@ -11,12 +11,12 @@ PATH=debian:$PATH:/usr/lib/debhelper
 
 for PACKAGE in $DH_DOPACKAGES; do
         TMP=`tmpdir $PACKAGE`
-       EXT=`pkgext $PACKAGE`
+       undocumented=`pkgfile $PACKAGE undocumented`
 
        undoc=""
 
-       if [ -e debian/${EXT}undocumented ]; then
-               undoc=`tr "\n" " " < debian/${EXT}undocumented`
+       if [ "$undocumented" ]; then
+               undoc=`tr "\n" " " < $undocumented`
        fi
 
        if [ \( "$PACKAGE" = "$DH_FIRSTPACKAGE" -o "$DH_PARAMS_ALL" \) \
index 9df8e311bcdc9c31454f850f9d3bf69eaf155a9c..677c90f8c2a137db8ca3dc82a7a943d48217e442 100644 (file)
@@ -27,9 +27,9 @@ parameters will be set up in the first package dh_undocumented is told
 to act on. By default, this is the first binary package in debian/control, 
 but if you use -p, -i, or -a flags, it will be the first package specified 
 by those flags.
-Also, a file named debian/undocumented (for the first binary package in 
-debian/control), or debian/package.undocumented (for each additional package 
-in debian/control) can list other man page names to set up.
+Also, a file named debian/package.undocumented (or debian/undocumented, for 
+the first binary package in debian/control) can list other man page names to
+set up.
 .SH OPTIONS
 .TP
 .B \-v