-dh_compress: doesn't verbose echo that it's cd'd to $TMP.
-dh_installdirs, dh_md5sums: uses ../.. to cd back to original location, but
- we don't know that $TMP is 2 levels deep.
-dh_compress: refers to ../compress (meaning debian/compress), but we don't
-know that this will work - exp if $TMP is not under debian/.
+debhelper (0.29) unstable; urgency=low
+
+ * dh_lib: don't expand text passed to doit() a second time. This fixes
+ #15624, and hopefully doesn't break anything else.
+ * A side effect of this (of interest only to the debhelper programmer) is
+ that doit() can no longer handle complex commands now. (ie, pipes, `;',
+ `&', etc separating multiple commands, or redirection)
+ * dh_makeshlibs, dh_md5sums, dh_installdebfiles, dh_du, dh_clean,
+ dh_installdirs: don't pass complex commands to doit().
+
+ -- Joey Hess <joeyh@master.debian.org> Thu, 4 Dec 1997 13:56:14 -0500
+
debhelper (0.28) unstable; urgency=low
* dh_makeshlibs: fixes type that caused the program to crash (#15536).
fi
# Note that the tabs in this next line are important.
- doit "du -k $TMP | sed 's: $TMP/: :' | grep -v ' DEBIAN$' | grep -v ' $TMP$' >$TMP/DEBIAN/du"
+ complex_doit "du -k $TMP | sed 's: $TMP/: :' | grep -v ' DEBIAN$' | grep -v ' $TMP$' >$TMP/DEBIAN/du"
doit "chown root.root debian/tmp/DEBIAN/du"
done
fi
done
# Create dirs.
- doit "cd $TMP && install -d $dirs && cd ../.."
+ doit "cd $TMP"
+ doit "install -d $dirs"
+ doit "cd ../.."
fi
done
if [ ! -d "$TMP/DEBIAN" ] ; then
doit "install -d $TMP/DEBIAN"
fi
- doit "echo '$LIBRARY $MAJOR $PACKAGE' >>$TMP/DEBIAN/shlibs"
+ complex_doit "echo '$LIBRARY $MAJOR $PACKAGE' >>$TMP/DEBIAN/shlibs"
done
if [ -e "$TMP/DEBIAN/shlibs" ]; then
doit "install -d $TMP/DEBIAN"
fi
- doit "find $TMP/* -type f ! -regex '^$TMP/DEBIAN/.*' | sed s:$TMP:: | sort > $TMP/DEBIAN/allfiles"
+ complex_doit "find $TMP/* -type f ! -regex '^$TMP/DEBIAN/.*' | sed s:$TMP:: | sort > $TMP/DEBIAN/allfiles"
# Check if we should exclude conffiles.
if [ ! "$DH_EXCLUDE" -a -r $TMP/DEBIAN/conffiles ]; then
- doit "sort $TMP/DEBIAN/conffiles | comm -13 - $TMP/DEBIAN/allfiles > $TMP/DEBIAN/allfiles.new"
+ complex_doit "sort $TMP/DEBIAN/conffiles | comm -13 - $TMP/DEBIAN/allfiles > $TMP/DEBIAN/allfiles.new"
doit "mv $TMP/DEBIAN/allfiles.new $TMP/DEBIAN/allfiles"
fi
- doit "cd $TMP ; sed 's:^/::' < DEBIAN/allfiles | xargs md5sum > DEBIAN/md5sums ; cd ../.."
+ complex_doit "cd $TMP ; sed 's:^/::' < DEBIAN/allfiles | xargs md5sum > DEBIAN/md5sums ; cd ../.."
doit "chown root.root $TMP/DEBIAN/md5sums"
doit "rm -f $TMP/DEBIAN/allfiles"
done
doit "install -d $TMP/$dir"
fi
- doit ln -s $reldir/man7/undocumented.7.gz $TMP/$dir/$file.gz
+ doit "ln -s $reldir/man7/undocumented.7.gz $TMP/$dir/$file.gz"
done
fi
done