summaryrefslogtreecommitdiff
path: root/make_patch
blob: 8747fe6b840faf8cb47b84a2be7c4d099155c127 (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
32
33
34
35
#!/bin/sh
old=$1
new=$2
nm=$3-

newarc=../releases/$nm$new.tar.gz
oldarc=../releases/$nm$old.tar.gz


if [ ! -x  $nm$new ]
then
   echo untarring ..
  if [ ! -f $newarc ]
  then
	echo cant find $newarc
	exit
  fi
  tar zfxv $newarc
fi
if [ ! -x  $nm$old ]
then
   echo untarring

  if [ ! -f $oldarc ]
  then
	echo cant find oldarc
	exit
  fi
   tar zfxv $oldarc
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 $nm$new