blob: 80548815dfad4acb8e73bc5b4f359b661f54723d (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
old=$1
new=$2
nm=$3-
newarc=$nm$new.tar.gz
oldarc=$nm$old.tar.gz
if [ ! -f $newarc ]
then
echo cant find $newarc
exit
fi
if [ ! -f $oldarc ]
then
echo cant find oldarc
exit
fi
if [ ! -x $nm$new ]
then
echo untarring ..
tar zfxv $nm$new.tar.gz
fi
if [ ! -x $nm$old ]
then
echo untarring
tar zfxv $nm$old.tar.gz
fi
(cd $nm$old; make clean)
(cd $nm$new; make clean)
(cd $nm$new; diff -P -c ../$nm$old . > ../patch-$new)
rm -rf $nm$old
|