* add a dh_debstd, which mimics debstd, but uses debhelper tools internally.
* dh_du: change it so it doesn't grep for things with tabs in them. That's
nasty. (and makes cut-and-paste from dh_du -v not work).
+* dh_compress: add --exclude "*.conf" type-thingy
+* info support for debhelper
+debhelper (0.32) unstable; urgency=low
+
+ * Split dh_installdebfiles into 3 programs (dh_installdeb, dh_shlibdeps,
+ and dh_gencontrol). dh_installdebfiles still works, but is depricated.
+ * Added an examples/rules.indep file.
+ * examples/rules.multi: changed dh_du -a to dh_du -i in binary-indep
+ section.
+
+ -- Joey Hess <joeyh@master.debian.org> Wed, 10 Dec 1997 19:53:13 -0500
+
debhelper (0.31) unstable; urgency=low
* Fixed man page typos #15685.
./dh_compress
./dh_fixperms
./dh_suidregister
- ./dh_installdebfiles
+ ./dh_installdeb
+ ./dh_shlibdeps
+ ./dh_gencontrol
./dh_du
./dh_md5sums
./dh_builddeb
doit "rm -rf $TMP"
doit "rm -f debian/${EXT}substvars"
done
-doit "rm -f debian/files* debian/*.debhelper $*"
+doit "rm -f debian/*.debhelper $*"
+if [ ! "$DH_K_FLAG" ]; then
+ doit "rm -f debian/files*"
+fi
# Remove other temp files.
# Use complex_doit so we can properly escape things.
-complex_doit "find . \( -name '#*#' -o -name '*~' -o -name DEADJOE -o -name '*.orig' \
- -o -name '*.rej' -o -name '*.bak' -o -name '.*.orig' \
- -o -name '.*.rej' -o -name .SUMS -o -name TAGS -o -name core \
+complex_doit "find . \( -name '#*#' -o -name '*~' -o -name DEADJOE \
+ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
+ -o -name '.*.orig' -o -name '.*.rej' -o -name .SUMS \
+ -o -name TAGS -o -name core \
\) -exec rm -f {} \;"
# If any .debhelper files exist, add them into the scripts.
for file in postinst preinst prerm postrm; do
if [ -f debian/$EXT$file ]; then
- # Add this into the script, where it has #DEBHELPER#
if [ -f debian/$EXT$file.debhelper ]; then
+ # Add this into the script, where it has
+ # #DEBHELPER#
complex_doit "perl -pe 's~#DEBHELPER#~qx{cat debian/$EXT$file.debhelper}~eg' < debian/$EXT$file > $TMP/DEBIAN/$file"
- doit "chown root.root $TMP/DEBIAN/$file"
- doit "chmod 755 $TMP/DEBIAN/$file"
else
- doit "install -o root -g root -p debian/$EXT$file $TMP/DEBIAN/$file"
+ # Just get rid of any #DEBHELOPER# in the
+ # script.
+ complex_doit "sed s/#DEBHELPER#// < debian/$EXT$file > $TMP/DEBIAN/$file"
fi
+ doit "chown root.root $TMP/DEBIAN/$file"
+ doit "chmod 755 $TMP/DEBIAN/$file"
else
# Auto-generate script header and add .debhelper
# content to it.
dh_installdebfiles \- install files into the DEBIAN directory
.SH SYNOPSIS
.B dh_installdebfiles
-.I "[-v] [-a] [-i] [-ppackage] [-Ptmpdir]"
.SH "DESCRIPTION"
dh_installdebfiles is a debhelper program that is responsible for installing
files into the DEBIAN directory in package build directories with the
-correct permissions.
+correct permissions, canculating shared library dependancies, and creating a
+control file.
.P
-dh_installdocs automatically installs the following files from debian/ into
-the DEBIAN directory:
-.IP postinst
-.IP preinst
-.IP postrm
-.IP prerm
-.IP shlibs
-.IP conffiles
+This program is depricated. It is now merely a wrapper around three other
+programs, and you may replace any calls to this program by:
.P
-(For packages other than the first binary package listed in debian/control,
-prefix these filenames with then name of the "package.", for example,
-"foo.postinst".)
-.P
-The files postinst, preinst, postrm, and prerm are handled specially: If a
-corresponding file named debian/script.debhelper exists, the contents of that
-file are merged into the script as follows: If the script exists, then
-anywhere in it that "#DEBHELPER#" appears, the text of the .debhelper file is
-inserted. If the script does not exist, then a script is generated from
-the .debhelper file. The .debhelper files are created by other debhelper
-programs, such as
-.BR dh_installmenu (1)
-, and are shell scripts.
-.P
-In addition, it will generate a DEBIAN/control file, by running
-.BR dpkg-shlibdeps (1)
-and
-.BR dpkg-gencontrol (1)
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+.SH WARNING
+This program will be removed at some time in the furture.
.SH OPTIONS
-.TP
-.B \-v
-Verbose mode; show all commands that modify the package build directory.
-.TP
-.B \-a
-Install files for all architecture dependent packages.
-.TP
-.B \-i
-Install files for all architecture independent packages.
-.TP
-.B \-ppackage
-Install files for the package named "package".
-.TP
-.B \-Ptmpdir
-Use "tmpdir" for package build directory.
-.SH NOTES
-The
-.B \-a
-.B \-i
-and
-.B \-p
-arguments are cumulative. If none are specified, then all packages listed in
-the control file will be effected.
-.SH ENVIRONMENT
-.TP
-.I DH_VERBOSE
-Enables verbose mode
+Any options passed to this program will be sent to each of the 3 programs
+listed above.
.SH "SEE ALSO"
.BR /usr/doc/debhelper/README
-.SH "CONFORMS TO"
-Debian policy, version 2.3.0.0
+.BR dh_installdeb (1)
+.BR dh_shlibdeps (1)
+.BR dh_gencontrol (1)
.SH AUTHOR
Joey Hess <joeyh@master.debian.org>
.P
It also automatically generates the postinst and postrm commands needed to
interface with the debian menu package. See
-.BR dh_installdebfiles (1)
+.BR dh_installdeb (1)
for an explanation of how this works.
.P
If a file named debian/menu exists, then it is installed into
# Argument processing and global variable initialization is below.
# Parse command line.
-set -- `getopt xvidrnap:P:u: $*`
+set -- `getopt xvidrnakp:P:u: $*`
for i; do
case "$i"
DH_R_FLAG=1
shift
;;
+ -k)
+ DH_K_FLAG=1
+ shift
+ ;;
-P)
DH_TMPDIR="$2"
shift
will automatically register all files it finds.
.P
Note that this package modifies your postinst and postrm files. See
-.BR dh_installdebfiles (1)
+.BR dh_installdeb (1)
for an explanation of how this works.
.SH OPTIONS
.TP
binary-arch: build
dh_testdir
dh_testroot
- dh_clean
+ dh_clean -k
dh_installdirs
# Add here commands to install the files into debian/tmp
- #$(MAKE) PREFIX=debian/tmp install
+ #$(MAKE) prefix=`pwd`/debian/tmp install
dh_installdocs
dh_installexamples
dh_installmenu
binary-indep: build
dh_testdir
dh_testroot
- dh_clean
+ dh_clean -k
dh_installdirs
# Add here commands to install the files into debian/tmp
- #$(MAKE) PREFIX=debian/tmp install
+ #$(MAKE) prefix=`pwd`/debian/tmp install
dh_installdocs
dh_installexamples
dh_installmenu
binary-indep: build
dh_testdir -i
dh_testroot -i
- dh_clean -i
+ dh_clean -i -k
dh_installdirs -i
# Add here commands to install the files into debian/tmp
- #$(MAKE) PREFIX=debian/tmp install
+ #$(MAKE) prefix=`pwd`/debian/tmp install
dh_installdocs -i
dh_installexamples -i
dh_installmenu -i
binary-arch: build
dh_testdir -a
dh_testroot -a
- dh_clean -a
+ dh_clean -a -k
dh_installdirs -a
# Add here commands to install the files into debian/tmp
- #$(MAKE) PREFIX=debian/tmp install
+ #$(MAKE) prefix=`pwd`/debian/tmp install
dh_installdocs -a
dh_installexamples -a
dh_installmenu -a