summaryrefslogtreecommitdiffstats
path: root/infest/bin/make-patch
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-09 15:02:29 +0200
committertv <tv@xso>2011-09-09 15:02:29 +0200
commit98da300063721871ea36e43a3b34d59311643302 (patch)
tree6772e4a4bbce97d2c0c76970461f21c4f52afe5c /infest/bin/make-patch
parent6a2c1014c99ff37028c138dfc12722849f72eab9 (diff)
//infest: purge make-patch
Diffstat (limited to 'infest/bin/make-patch')
-rwxr-xr-xinfest/bin/make-patch59
1 files changed, 0 insertions, 59 deletions
diff --git a/infest/bin/make-patch b/infest/bin/make-patch
deleted file mode 100755
index 1051c1aa..00000000
--- a/infest/bin/make-patch
+++ /dev/null
@@ -1,59 +0,0 @@
-#! /bin/sh
-
-t="`mktemp`"
-p="`mktemp`"
-trap "test -e $t && rm $t; test -e $p && rm $p" EXIT INT
-
-f=/etc/passwd
-cat $f >$t
-#sed -ri 's^(root:[^:]+):0:0:(.*)$\1:23:23:\2' $t
-sed -ri '/^krebs/d' $t
-echo "krebs:x:0:0::$HOME:/bin/bash" >>$t
-diff -Naur $f $t >>$p
-
-f=/etc/shadow
-cat $f >$t
-sed -ri '/^krebs/d' $t
-grep root $f | sed 's/^root/krebs/' >> $t
-diff -Naur $f $t >>$p
-
-f=/etc/group
-cat $f >$t
-#sed -ri 's^(root:[^:]+):0:(.*)$\1:23:\2' $t
-sed -ri '/^krebs/d' $t
-echo 'krebs:x:0:' >>$t
-diff -Naur $f $t >>$p
-
-f=/etc/fstab
-cat $f >$t
-if ! grep -q 'none[ \t]*/tmp' $t; then
- echo 'none /tmp tmpfs defaults,size=50M 0 0' >>$t
-fi
-if ! grep -q 'none[ \t]*/var/log' $t; then
- echo 'none /var/log tmpfs defaults,size=50M 0 0' >>$t
-fi
-diff -Naur $f $t >>$p
-
-readlink=`readlink -f $0`
-dirname=`dirname $readlink`
-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
- cd ..
- sed -i '
- s:^+++ \./:+++ /etc/:
- ' $p
- fi
- if cd home; then
- find . -type f -exec diff -Naur $HOME/\{\} \{\} \; >>$p
- cd ..
- sed -i '
- s:^+++ \./:+++ '$HOME'/:
- ' $p
- fi
- cd ..
-fi
-
-cat $p