Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 17 years ago
parent
commit
11b4ca1d9f
2 changed files with 18 additions and 6 deletions
  1. +12
    -2
      misc/archive/bked.sh
  2. +6
    -4
      misc/archive/xdiff.sh

+ 12
- 2
misc/archive/bked.sh

@ -22,5 +22,15 @@
# #
# --- ROCK-COPYRIGHT-NOTE-END --- # --- ROCK-COPYRIGHT-NOTE-END ---
for x ; do [ -f $x.orig ] || cp -v $x $x.orig ; done
$EDITOR "$@"
for x; do
if [ "${x#-}" != "$x" ]; then
continue
fi
if [ ! -f $x.orig ]; then
touch $x
cp -v $x $x.orig
fi
done
${EDITOR:-vi} "$@"

+ 6
- 4
misc/archive/xdiff.sh

@ -22,8 +22,10 @@
# #
# --- ROCK-COPYRIGHT-NOTE-END --- # --- ROCK-COPYRIGHT-NOTE-END ---
list="`find $* -name '*.orig'`"
for x in $list
do diff -ud $x `echo $x | sed 's,\.orig$,,'`
for x in $( { find "$@" -name '*.orig' -type f; find "$@" -maxdepth 0 -type f; } | sed 's,\.orig$,,' | sort -u; )
do
if [ -f "$x" -a -f "$x.orig" ]; then
diff -ud "$x.orig" "$x"
fi
done done

Loading…
Cancel
Save