summaryrefslogtreecommitdiffstats
path: root/infest/bin/make-patch
diff options
context:
space:
mode:
authorFelix Richter <Felix.Richter@syntax-fehler.de>2011-06-02 22:56:24 +0200
committerFelix Richter <Felix.Richter@syntax-fehler.de>2011-06-02 22:56:24 +0200
commit97263895916d318b160e442f2dba6861e993bcf9 (patch)
treeba361afde603dd7ff5f5a14f5c8012ac5edb180a /infest/bin/make-patch
parentc911bc36742024688e238136ed23492b8dc858dd (diff)
parentcb924ef762b1136ccdb96280ad69fd506ac047e7 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'infest/bin/make-patch')
-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