lilypond-0.0.4
[lilypond.git] / make_patch
blob08f4936b563092fec113563b236e8aa23631cfc7
1 #!/bin/sh
2 old=$1
3 new=$2
4 nm=$3-
5 newarc=$nm$new.tar.gz
6 oldarc=$nm$old.tar.gz
7 if [ ! -f $newarc ]
8 then
9 echo cant find $newarc
10 exit
12 if [ ! -f $oldarc ]
13 then
14 echo cant find oldarc
15 exit
17 if [ ! -x $nm$new ]
18 then
19 echo untarring ..
20 tar zfxv $nm$new.tar.gz
22 if [ ! -x $nm$old ]
23 then
24 echo untarring
25 tar zfxv $nm$old.tar.gz
28 #(cd $nm$old; touch depend; make clean)
29 #(cd $nm$new; touch depend; make clean)
30 (cd $nm$new; diff -P -c ../$nm$old . > ../patch-$new)
31 rm -rf $nm$old