]> git.donarmstrong.com Git - debhelper.git/commitdiff
r34: Initial Import
authorjoey <joey>
Tue, 17 Aug 1999 04:39:02 +0000 (04:39 +0000)
committerjoey <joey>
Tue, 17 Aug 1999 04:39:02 +0000 (04:39 +0000)
README
debian/changelog
dh_clean
dh_installdebfiles
dh_lib
dh_makeshlibs

diff --git a/README b/README
index 2bb9c7a5c63c349aadfc45f8912af7fda278da1f..e192504dca706d8857d76e80ede45efd04db7263 100644 (file)
--- a/README
+++ b/README
@@ -125,13 +125,5 @@ binary package the debhelper program will act on. For example:
 
 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>
index b652cde122e8dca8c108168b38dc0d5113940660..7badab5c18cb5512e217a2d562c5c8cd0e5b7913 100644 (file)
@@ -1,3 +1,9 @@
+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).
index 8e92fc8d5ababddc62d4e6d2a7dd500cfdf95f2c..b170494b530740219f0989fa8c723c106f90447d 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -15,7 +15,8 @@ done
 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 {} \;"
index a9954963fac0970f43f87f0140ac6147dfb1f1d1..825c9ee57f6c5a8d6fe61041ad31f28ab3ac2fd7 100755 (executable)
@@ -20,7 +20,7 @@ for PACKAGE in $DH_DOPACKAGES; do
                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
@@ -30,8 +30,8 @@ for PACKAGE in $DH_DOPACKAGES; do
                        # 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
diff --git a/dh_lib b/dh_lib
index 4aace52cd5dc9b7d03a98cdde5e585a728ef72f8..4c8c68c6f95588e4862e57c1ebb86765936940f9 100644 (file)
--- a/dh_lib
+++ b/dh_lib
@@ -3,7 +3,16 @@
 # 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 "$@"
 }
@@ -65,10 +74,9 @@ autoscript() {
                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.
index 1f8dd92c42424f03141e152cbb4d479cfeab9685..24fef4ec36f1a74ad4d38fda3c19323fa49d92c8 100755 (executable)
@@ -20,7 +20,7 @@ for PACKAGE in $DH_DOPACKAGES; do
                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