]> git.donarmstrong.com Git - lilypond.git/blob - bin/make_patch
release: 0.0.61
[lilypond.git] / bin / make_patch
1 #!/bin/sh
2
3 case $# in
4 0) echo make_patch old new name
5         exit 1;;
6 esac
7
8 old=$1
9 new=$2
10 nm=$3-
11
12 newarc=../releases/$nm$new.tar.gz
13 oldarc=../releases/$nm$old.tar.gz
14
15
16 if [ ! -x  $nm$new ]
17 then
18    echo untarring ..
19   if [ ! -f $newarc ]
20   then
21         echo cant find $newarc
22         exit
23   fi
24   tar zfx $newarc
25 fi
26 if [ ! -x  $nm$old ]
27 then
28    echo untarring
29
30   if [ ! -f $oldarc ]
31   then
32         echo cant find $oldarc
33         exit
34   fi
35    tar zfx $oldarc
36 fi
37
38 # not interested in auto generated files.
39 for a in lilypond.lsm INSTALL.text AUTHORS.text lilypond.spec configure; do
40     rm `find  $nm$old $nm$new  -name $a`
41 done    
42
43 echo 'use cd source-dir; patch -E -p0 < this_patch'> patch-$new
44
45 (cd $nm$new; diff -urN  ../$nm$old . >> ../patch-$new)
46 rm -rf $nm$old $nm$new