diff options
author | root <root@krebs> | 2011-05-31 15:25:08 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-05-31 15:27:39 +0200 |
commit | cb924ef762b1136ccdb96280ad69fd506ac047e7 (patch) | |
tree | d4515e15fb4ef44f87f53ff18316c5e815c92672 /infest/bin | |
parent | e5cd39035587db771218a18c75e653a757e47ebd (diff) |
infest//make-patch: p{ush,op}d suck asscocks
cd wins
Diffstat (limited to 'infest/bin')
-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 |