summaryrefslogtreecommitdiff
path: root/make_patch
blob: 08f4936b563092fec113563b236e8aa23631cfc7 (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; touch depend; make clean)
#(cd $nm$new; touch depend; make clean)
(cd $nm$new; diff -P -c  ../$nm$old . > ../patch-$new)
rm -rf $nm$old