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

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


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