+debhelper (0.54) unstable; urgency=low
+
+ * dh_lib: no longer call getopt(1) to parse options. I wrote my own
+ argument processor in perl.
+ * Added long versions of all arguments. TODO: document them.
+ * All parameters may now be passed values that include whitespace (ie,
+ dh_installinit -u"defaults 10")
+ * Now depends on perl (needs Getopt::Long).
+
+ -- Joey Hess <joeyh@master.debian.org> Sat, 10 Jan 1998 15:44:09 -0500
+
debhelper (0.53) unstable; urgency=low
* dh_installmanpages: ignore all man pages installed into debian/tmp
TMP=`tmpdir $PACKAGE`
substvars=`pkgfile $PACKAGE substvars`
if [ "$substvars" ]; then
- doit "rm -f debian/$substvars"
+ doit "rm -f $substvars"
fi
doit "rm -rf $TMP"
done
files, etc.
.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
Clean up the package build directory for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Clean up the package build directory for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Clean up the package build directory for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-k
+.B \-k, \--keep
Do not delete debian/files. When do you want to use this? Anytime you have a
debian/rules that has 2 binary targets that build different .deb packages;
for example, one target is binary-arch, and the other is binary-indep, or
! -name "copyright"
.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
Compress files for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Compress files for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Compress files for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.SH NOTES
The
The du 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 du files for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Generate du files for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Generate du file for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.SH NOTES
The
Finally, it removes execute permissions from any libraries that have it set.
.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
Fix permissions for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Fix permissions for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Fix permissions for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.SH NOTES
The
directory. Ie, "/usr/bin" should not be used, use "usr/bin" instead.
.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
Create directories for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Create directories for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Create directories for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-A
+.B \-A, \--all
Create any directories specified by command line parameters in ALL packages
acted on.
.TP
binary package in debian/control) can list other files to be installed.
.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 \-A
+.B \-A, \--all
Install all files specified by command line parameters in ALL packages
acted on.
.TP
first binary package in debian/control) can list other files to be installed.
.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 \-A
+.B \-A, \--all
Install any files specified by command line parameters in ALL packages
acted on.
.TP
arguments are cumulative. If none are specified, then all packages listed in
the control file will be effected.
.P
-Note that dh_examples will happily copy entire directory hierarchies if
+Note that dh_installexamples will happily copy entire directory hierarchies if
you ask it to (it uses cp -a internally). If it is asked to install a
directory, it will install the complete contents of the directory.
.SH ENVIRONMENT
listed in the control file.)
.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 init scripts into all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Install init scripts into all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Install init scripts into the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-n
+.B \-n, \--noscripts
Do not modify postinst/postrm/prerm scripts.
.TP
-.B \-r
+.B \-r, \--no-restart-on-upgrade
Do not restart daemon on upgrade.
.TP
-.B \-d
+.B \-d, \--remove-d
Remove trailing "d" from the name of the package, and use the result for the
filename the init script is installed as in etc/init.d/ . This may be useful
for daemons with named ending in "d".
.TP
-.B \-uparams
+.B \-uparams, \--update-rcd-params=params
Pass "params" to
.BR update-rc.d (8)
If not specified, "default" will be passed to
.B \-p
arguments are cumulative. If none are specified, then all packages listed in
the control file will be effected.
-.P
-Due to a bug in
-.BR getopt (1)
-, you cannot really text with spaces in it to the -u flag. However, this bug
-has been worked around, and it should appear to work. What it's really doing
-is looking at any parameters passed that are not known flags, and appending
-that text onto the end of the text specified by the -u flag.
.SH ENVIRONMENT
.TP
.I DH_VERBOSE
to be installed.
.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 man pages into all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Install man pages into all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Install man pages into the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
.B file ...
debian/menu and debian/menu-method instead.
.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 menu files into all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Install menu files into all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Install menu files into the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-n
+.B \-n, \--noscripts
Do not modify postinst/postrm scripts.
.SH NOTES
The
if [ ! -d "$TMP/DEBIAN" ] ; then
doit "install -d $TMP/DEBIAN"
fi
- if [ "$DH_V_FLAG" ]; then
- if [ "$*" ]; then
- PACKAGE="$*"
+ if [ "$DH_V_FLAG_SET" ]; then
+ if [ "$DH_V_FLAG" ]; then
+ PACKAGE="$DH_V_FLAG"
else
# Call isnative becuase it sets $VERSION
# as a side effect.
dh_makeshlibs \- automatically create shlibs file
.SH SYNOPSIS
.B dh_makeshlibs
-.I "[-v] [-a] [-i] [-mmajor] [-Ptmpdir] [-ppackage] [-mmajor] [-V [dependancies]]"
+.I "[-v] [-a] [-i] [-mmajor] [-Ptmpdir] [-ppackage] [-mmajor] [-V[dependancies]]"
.SH "DESCRIPTION"
dh_makeshlibs is a debhelper program that automatically scans for shared
libraries, and generates a shlibs file for the libraries it finds.
file. If such a file exits, the program will exit with an error.
.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 shlibs files for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Generate shlibs files for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Generate shlibs file for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-mmajor
+.B \-mmajor, \--major=major
Instead of trying to guess the major number of the library from the filename
of the library, use the major number specified after the -m parameter.
.TP
-.B \-V [dependancies]
+.B \-V[dependancies], \--version-info, \--version-info=dependancies
By default, the shlibs file generated by this program does not make packages
depend on any particular version of the package containing the shared
library. It may be necessary for you to add some version dependancy
.SH "SEE ALSO"
.BR /usr/doc/debhelper/README
.SH BUGS
-Due to limitations in
-.BR getopt (1)
-, I had to fudge a bit on how the -V parameter really works. When -V is
-specified, it's really examining the rest of the command line for any text
-that isn't a switch, and using that for the dependancy information. This
-means that the -V switch and any dependancy parameters should come last on
-the command line.
-.P
There is no guarantee that the program will get the shlibs file right. For
example, it may not correctly guess the major number of your package. In
cases like these (and perhaps in general, just to be safe), it is better to
for an explanation of how this works.
.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
Register files for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Register files for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Register files for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-A
+.B \-A, \--all
Register any files specified by command line parameters in ALL packages
acted on. I doubt anyone will find this useful, it's here for consitency
with other debhelper programs.
set up.
.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 undocumented man page symlinks for all architecture dependent packages.
.TP
-.B \-i
+.B \-i, \--indep
Install undocumented man page symlinks for all architecture independent packages.
.TP
-.B \-ppackage
+.B \-ppackage, \--package=package
Install undocumented man page symlinks for the package named "package".
.TP
-.B \-Ptmpdir
+.B \-Ptmpdir, \--tmpdir=tmpdir
Use "tmpdir" for package build directory.
.TP
-.B \-A
+.B \-A, \--all
Install undocumented man page symlinks for any man pages specified by
command line parameters in ALL packages acted on. I doubt anyone will find
this useful, it's here for consitency with other debhelper programs.
build: build-stamp
build-stamp:
dh_testdir
+
# Add here commands to compile the package.
#$(MAKE)
+
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
+
# Add here commands to clean up after the build process.
#-$(MAKE) distclean
+
dh_clean
# Build architecture-independent files here.
# Build architecture-dependent files here.
binary-arch: build
+# dh_testversion
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
+
# Add here commands to install the files into debian/tmp
#$(MAKE) prefix=`pwd`/debian/tmp install
+
dh_installdocs
dh_installexamples
dh_installmenu
build: build-stamp
build-stamp:
dh_testdir
+
# Add here commands to compile the package.
#$(MAKE)
+
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
+
# Add here commands to clean up after the build process.
#-$(MAKE) distclean
+
dh_clean
# Build architecture-independent files here.
binary-indep: build
+# dh_testversion
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
+
# Add here commands to install the files into debian/tmp
#$(MAKE) prefix=`pwd`/debian/tmp install
+
dh_installdocs
dh_installexamples
dh_installmenu
build: build-stamp
build-stamp:
dh_testdir
+
# Add here commands to compile the package.
#$(MAKE)
+
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
+
# Add here commands to clean up after the build process.
#-$(MAKE) distclean
+
dh_clean
# Build architecture-independent files here.
binary-indep: build
+# dh_testversion
dh_testdir -i
dh_testroot -i
dh_clean -i -k
dh_installdirs -i
+
# Add here commands to install the files into debian/tmp
#$(MAKE) prefix=`pwd`/debian/tmp install
+
+ dh_movefiles -i
dh_installdocs -i
dh_installexamples -i
dh_installmenu -i
# Build architecture-dependent files here.
binary-arch: build
+# dh_testversion
dh_testdir -a
dh_testroot -a
dh_clean -a -k
dh_installdirs -a
+
# Add here commands to install the files into debian/tmp
#$(MAKE) prefix=`pwd`/debian/tmp install
+
+ dh_movefiles -a
dh_installdocs -a
dh_installexamples -a
dh_installmenu -a