3
# DP: Fix bashism in makesetup shell script
6
if [ $# -eq 3 -a "$2" = '-d' ]; then
9
elif [ $# -ne 1 ]; then
10
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
15
patch $pdir -f --no-backup-if-mismatch -p0 < $0
18
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
21
echo >&2 "usage: `basename $0`: -patch|-unpatch [-d <srcdir>]"
26
--- Modules/makesetup~ 2009-11-19 15:14:31.758960233 +0000
27
+++ Modules/makesetup 2009-11-19 15:14:47.218976182 +0000
31
trap 'rm -f $sedf' 0 1 2 3
33
+ printf "1i\\" >$sedf
34
str="# Generated automatically from $makepre by makesetup."
36
echo "s%_MODOBJS_%$OBJS%" >>$sedf