diff options
author | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-06-02 22:56:24 +0200 |
---|---|---|
committer | Felix Richter <Felix.Richter@syntax-fehler.de> | 2011-06-02 22:56:24 +0200 |
commit | df46dc81676c33f0998ab9e1544c27a5e5e0588b (patch) | |
tree | 0ad29aed31397e28097aced4274b21bfa50bcf91 /infest/bin/make-patch | |
parent | 5ff862e21c0c9930bd6078a5514e504277cc9a94 (diff) | |
parent | 17b5e792b9968eeb100c00996c891c38c0f5d16d (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'infest/bin/make-patch')
-rwxr-xr-x | infest/bin/make-patch | 14 |
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 [32m$dirname/../skel[m >&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 |