summaryrefslogtreecommitdiffstats
path: root/infest
diff options
context:
space:
mode:
authorroot <root@krebs>2011-05-31 15:25:08 +0200
committerroot <root@krebs>2011-05-31 15:27:39 +0200
commit17b5e792b9968eeb100c00996c891c38c0f5d16d (patch)
tree13a61a30e442436c6eb6e6f7f2ffe21c8a5c4f43 /infest
parent872a6cfafd65fc5b3a1bec6ec1b73588dcd29ffc (diff)
infest//make-patch: p{ush,op}d suck asscocks
cd wins
Diffstat (limited to 'infest')
-rwxr-xr-xinfest/bin/make-patch14
1 files changed, 8 insertions, 6 deletions
diff --git a/infest/bin/make-patch b/infest/bin/make-patch
index 6f26e745..e2ef0ca0 100755
--- a/infest/bin/make-patch
+++ b/infest/bin/make-patch
@@ -36,22 +36,24 @@ diff -Naur $f $t >>$p
readlink=`readlink -f $0`
dirname=`dirname $readlink`
-if pushd $dirname/../skel >/dev/null; then
- if pushd etc >/dev/null; then
+echo $dirname/../skel >&2
+ls -l $dirname/../skel
+if cd $dirname/../skel; then
+ if cd etc; then
find . -mindepth 1 -maxdepth 1 -exec diff -Naur /etc/\{\} \{\} \; >>$p
- popd >/dev/null
+ cd ..
sed -i '
s:^+++ \./:+++ /etc/:
' $p
fi
- if pushd home >/dev/null; then
+ if cd home; then
find . -type f -exec diff -Naur $HOME/\{\} \{\} \; >>$p
- popd >/dev/null
+ cd ..
sed -i '
s:^+++ \./:+++ '$HOME'/:
' $p
fi
- popd >/dev/null
+ cd ..
fi
cat $p