lilypond-0.0.32
[lilypond.git] / make_patch
blob290e2e33da2163e9d97c744d80a8f9ad0b98c880
1 #!/bin/sh
3 case $# in
4 0) echo make_patch old new name
5 exit 1;;
6 esac
8 old=$1
9 new=$2
10 nm=$3-
12 newarc=../releases/$nm$new.tar.gz
13 oldarc=../releases/$nm$old.tar.gz
16 if [ ! -x $nm$new ]
17 then
18 echo untarring ..
19 if [ ! -f $newarc ]
20 then
21 echo cant find $newarc
22 exit
24 tar zfxv $newarc
26 if [ ! -x $nm$old ]
27 then
28 echo untarring
30 if [ ! -f $oldarc ]
31 then
32 echo cant find oldarc
33 exit
35 tar zfxv $oldarc
38 #(cd $nm$old; touch depend; make clean)
39 #(cd $nm$new; touch depend; make clean)
40 (cd $nm$new; diff -urP ../$nm$old . > ../patch-$new)
41 rm -rf $nm$old $nm$new