diff options
author | joey <joey> | 2000-10-28 18:44:02 +0000 |
---|---|---|
committer | joey <joey> | 2000-10-28 18:44:02 +0000 |
commit | e832acd1f52e8aa5e23aee08ad047704780b182a (patch) | |
tree | 383a5106e6b59d08101d8e247805c12e86c9f21f | |
parent | 4c98da4fc74be80721e50f808b7a0b9a327feb64 (diff) | |
download | debhelper-e832acd1f52e8aa5e23aee08ad047704780b182a.tar.gz |
r380: * dh_builddeb: added a --filename option to specify the output filename.
This is intended to be used when building .udebs for the debian
installer.
-rw-r--r-- | Debian/Debhelper/Dh_Getopt.pm | 2 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | dh_builddeb | 6 | ||||
-rw-r--r-- | dh_builddeb.1 | 8 | ||||
-rw-r--r-- | doc/PROGRAMMING | 1 |
5 files changed, 22 insertions, 3 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm index 1e52109e..02045bbe 100644 --- a/Debian/Debhelper/Dh_Getopt.pm +++ b/Debian/Debhelper/Dh_Getopt.pm @@ -123,6 +123,8 @@ sub parseopts { "sourcedir=s" => \$options{SOURCEDIR}, "destdir=s" => \$options{DESTDIR}, + + "filename=s" => \$options{FILENAME}, "number=i" => \$options{PRIORITY}, # deprecated "priority=i" => \$options{PRIORITY}, diff --git a/debian/changelog b/debian/changelog index 546e3fe5..57c65a44 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (2.1.18) unstable; urgency=low + + * dh_builddeb: added a --filename option to specify the output filename. + This is intended to be used when building .udebs for the debian + installer. + + -- Joey Hess <joeyh@debian.org> Sat, 28 Oct 2000 11:41:20 -0700 + debhelper (2.1.17) unstable; urgency=low * dh_movefiles.1: well I thought it was quite obvious why it always used diff --git a/dh_builddeb b/dh_builddeb index 1082dd29..15f4e397 100755 --- a/dh_builddeb +++ b/dh_builddeb @@ -10,7 +10,11 @@ if (! defined $dh{DESTDIR}) { $dh{DESTDIR}='..'; } +if (! defined $dh{FILENAME}) { + $dh{FILENAME}=''; +} + foreach $PACKAGE (@{$dh{DOPACKAGES}}) { $TMP=tmpdir($PACKAGE); - doit("dpkg","--build",$TMP,$dh{DESTDIR},@{$dh{U_PARAMS}}); + doit("dpkg","--build",$TMP,"$dh{DESTDIR}/$dh{FILENAME}",@{$dh{U_PARAMS}}); } diff --git a/dh_builddeb.1 b/dh_builddeb.1 index 9c5688cd..cefcd648 100644 --- a/dh_builddeb.1 +++ b/dh_builddeb.1 @@ -3,7 +3,7 @@ dh_builddeb \- build debian packages .SH SYNOPSIS .B dh_builddeb -.I "[debhelper options] [--destdir=directory] [-uparams] [-- params]" +.I "[debhelper options] [--destdir=directory] [--name=filename] [-uparams] [-- params]" .SH "DESCRIPTION" dh_builddeb simply calls .BR dpkg (8) @@ -19,10 +19,14 @@ for a list of options common to all debhelper commands. Use this if you want the generated .deb files to be put in a directory other than the default of ".." .TP +.B --name=filename +Use this if you want to force the generated .deb file to have a particular +file name. Does not work well if more than one .deb is generated! +.TP .B \-uparams .TP .B \-\- params -Pass "params" to +Pass "params" to .BR dpkg-deb (1) when it is used to build the package. .SH ENVIRONMENT diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING index ca10ca38..1f89e10f 100644 --- a/doc/PROGRAMMING +++ b/doc/PROGRAMMING @@ -123,6 +123,7 @@ switch variable description dh_movefiles will ever use this) --destdir DESTDIR will be set to a string (probably only dh_builddeb will ever use this) +--filename FILENAME will be set to a string --flavor FLAVOR will be set to a string (probably only dh_installemacsen will ever use this) --number PRIORITY will be set to a number (deprecated) |