+debhelper (0.79) frozen; urgency=low
+
+ * Reupload to get it into frozen. No changes since version 0.75
+ except bugfixes.
+
+ -- Joey Hess <joeyh@master.debian.org> Thu, 2 Apr 1998 16:10:55 -0800
+
debhelper (0.78) frozen unstable; urgency=low
* More spelling fixes from Christian T. Steigies. (I ignored the spelling
TMP=`tmpdir $PACKAGE`
EXT=`pkgext $PACKAGE`
+ changelog=`pkgfile $PACKAGE changelog`
+ if [ ! "$changelog" ]; then
+ changelog=debian/changelog
+ fi
+
if [ ! -d $TMP/DEBIAN ]; then
doit "install -o root -g root -d $TMP/DEBIAN"
fi
# Generate and install control file.
- doit "dpkg-gencontrol -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP $DH_U_PARAMS"
+ doit "dpkg-gencontrol -l$changelog -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP $DH_U_PARAMS"
# This chmod is only necessary if the user sets the umask to something odd.
doit "chmod 644 $TMP/DEBIAN/control"
doit "chown root.root $TMP/DEBIAN/control"
.P
This program is merely a wrapper around
.BR dpkg-gencontrol (1)
-You may prefer to simply run
-.BR dpkg-gencontrol (1)
-by hand.
.SH OPTIONS
.TP
.B \-v, \--verbose
for PACKAGE in $DH_DOPACKAGES; do
TMP=`tmpdir $PACKAGE`
+ changelog=`pkgfile $PACKAGE changelog`
+ if [ ! "$changelog" ]; then
+ changelog=debian/changelog
+ fi
+
if [ ! -d $TMP/usr/doc/$PACKAGE ]; then
doit "install -d $TMP/usr/doc/$PACKAGE"
fi
- doit "install -p -m644 debian/changelog $TMP/usr/doc/$PACKAGE/$CHANGELOG_NAME"
+ doit "install -p -m644 $changelog $TMP/usr/doc/$PACKAGE/$CHANGELOG_NAME"
if [ "$UPSTREAM" ]; then
doit "install -p -m644 $UPSTREAM $TMP/usr/doc/$PACKAGE/changelog"
dh_installchangelogs determines if the package is a debian native package,
and if so, it installs debian/changelog into usr/doc/package/changelog in
the package build directory. Otherwise, it installs debian/changelog into
-usr/doc/package/changelog.Debian in the package build directory.
+usr/doc/package/changelog.Debian in the package build directory. (If files
+named debian/package.changelog exist, they will be used in preference to
+debian/changelog.)
.P
If an upstream changelog file is specified as an option, and the package is
not a native debian package, then this upstream changelog will be installed
# Pass this the name of a binary package, and the name of the file wanted
# for the package, and it will return the actual filename to use. For
# example if the package is foo, and the file is somefile, it will look for
-# debian/somefile, and if found return that, otherwise, it will look for
-# debian/foo, and if found, return that. Failing that, it will return
-# nothing.
+# debian/somefile, and if found return that, otherwise, if the package is
+# the main package, it will look for debian/foo, and if found, return that.
+# Failing that, it will return nothing.
pkgfile() {
if [ -e "debian/$1.$2" ]; then
echo "debian/$1.$2"
TMP=`tmpdir $PACKAGE`
files=`pkgfile $PACKAGE files`
- move=""
+ if [ ! -d "debian/tmp" ]; then
+ error "debian/tmp does not exist"
+ fi
# debian/files has a different purpose, so ignore it.
if [ "$files" -a "$files" != "debian/files" ]; then
fi
files=`pwd`/$files
- complex_doit "(cd debian/tmp;tar --create --remove-files --file - "`cat $files`") | (cd $TMP;tar xpf -)"
+
+ # Order the files. First all real files, then symlinks.
+ # Putting symlinks last is a nice thing to do for library
+ # packages and doesn't affect much of anything else.
+ #
+ # (The echo is in here to expand wildcards. Note that ls
+ # won't work properly.)
+ for i in `(cd debian/tmp ; echo \`cat $files\`)`; do
+ tomove="`(cd debian/tmp ; \
+ find $i ! -type d -and ! -type l -print)` \
+ $tomove \
+ `(cd debian/tmp ; \
+ find $i ! -type d -and -type l -print)`"
+ done
+
+ complex_doit "(cd debian/tmp;tar --create --remove-files --file - "$tomove") | (cd $TMP;tar xpf -)"
fi
done
.P
Files named debian/package.files list the files to be moved, separated by
whitespace. The filenames listed should be relative to debian/tmp/. You can
-also list directory names, and the whole directory will be moved.
+also list directory names, and the whole directory will be moved. You can
+even use wildcards if you like.
+.P
+The files will be moved in a special order: first all normal files, then all
+symlinks. This is done becuase it tends to be a good thing to have symlinks
+last in debian packages, particularly in shared library packages.
.SH OPTIONS
.TP
.B \-v, \--verbose