This uses debian/tmp-<package> as the package build directory.
-Miscellaneous notes:
--------------------
-
-Some of the dh_* programs (dh_installdirs in particular, I have not checked
-the rest), will let you pass $PACKAGE to them and it will be expanded into
-the package name they are operating on. For example:
-
- dh_installdirs -a 'usr/doc/$PACKAGE'
-- Joey Hess <joeyh@master.debian.org>
+debhelper (0.28) unstable; urgency=low
+
+ * dh_makeshlibs: fixes type that caused the program to crash (#15536).
+
+ -- Joey Hess <joeyh@master.debian.org> Wed, 3 Dec 1997 13:22:48 -0500
+
debhelper (0.27) unstable; urgency=low
* README: fixed typoes (one serious).
doit "rm -f debian/files* debian/*.debhelper $*"
# Remove other temp files.
-doit "find . \( -name '#*#' -o -name '*~' -o -name DEADJOE -o -name '*.orig' \
+# 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 \
\) -exec rm -f {} \;"
if [ -f debian/$EXT$file ]; then
# Add this into the script, where it has #DEBHELPER#
if [ -f debian/$EXT$file.debhelper ]; then
- doit "perl -pe 's~#DEBHELPER#~qx{cat debian/$EXT$file.debhelper}~eg' < debian/$EXT$file > $TMP/DEBIAN/$file"
+ 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
# Auto-generate script header and add .debhelper
# content to it.
if [ -f debian/$EXT$file.debhelper ]; then
- doit "echo '#!/bin/sh -e' > $TMP/DEBIAN/$file"
- doit "cat debian/$EXT$file.debhelper >> $TMP/DEBIAN/$file"
+ complex_doit "echo '#!/bin/sh -e' > $TMP/DEBIAN/$file"
+ complex_doit "cat debian/$EXT$file.debhelper >> $TMP/DEBIAN/$file"
doit "chown root.root $TMP/DEBIAN/$file"
doit "chmod 755 $TMP/DEBIAN/$file"
fi
# 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
# function.
+# Note that this cannot handle complex commands, especially anything
+# involving redirection. Use complex_doit instead.
doit() {
+ verbose_echo "$@"
+ eval '$@'
+}
+
+# This is an identical command to doit, except the parameter passed to it
+# are evaled with double quotes. This version can handle compound commands.
+complex_doit() {
verbose_echo "$@"
eval "$@"
}
fi
fi
- # Running doit doesn't cut it here.
- doit "echo \"# Automatically added by `basename $0` on `822-date`\" >> $autoscript_debscript"
- doit "sed \"$autoscript_sed\" $autoscript_filename >> $autoscript_debscript"
- doit "echo '# End automatically added section' >> $autoscript_debscript"
+ complex_doit "echo \"# Automatically added by `basename $0` on `822-date`\" >> $autoscript_debscript"
+ complex_doit "sed \"$autoscript_sed\" $autoscript_filename >> $autoscript_debscript"
+ complex_doit "echo '# End automatically added section' >> $autoscript_debscript"
}
# Argument processing and global variable initialization is below.
if [ ! -d "$TMP/DEBIAN" ] ; then
doit "install -d $TMP/DEBIAN"
fi
- doit "echo '$LIBRARY $MAJOR $PACKAGE" >>$TMP/DEBIAN/shlibs"
+ doit "echo '$LIBRARY $MAJOR $PACKAGE' >>$TMP/DEBIAN/shlibs"
done
if [ -e "$TMP/DEBIAN/shlibs" ]; then