]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/mknetrel.patch
* lily/volta-bracket.cc (after_line_breaking): new function. Set
[lilypond.git] / cygwin / mknetrel.patch
1 # -*- shell-script -*-
2
3 #
4 # mknetrel.patch -- patch sources
5 #
6
7 dopatch () {
8     cd $src
9     patch -Np1 < $patch/$package.patch
10     cp -p $patch/$package.patch $src/$cygwin/
11 }
12
13 dodiff () {
14     [ -r $cygwin/.cvsignore ] || cat > $cygwin/.cvsignore <<EOF
15 #*
16 *.orig
17 *.rej
18 *~
19 .#*
20 .bash_mknetrel
21 *.patch
22 CYGWIN-PATCHES
23 MINGW-PATCHES
24 Makefile
25 GNUmakefile
26 Makefile.in
27 aclocal.m4
28 autom4te.cache
29 config.guess
30 config.sub
31 configure
32 libltdl
33 ltmain.sh
34 CVS
35 *[0-9].patch
36 EOF
37     diff -purNX$cygwin/.cvsignore $netrel_root/src/$upstream . > $patch/$package.patch-
38     if [ -s $patch/$package.patch- ]; then
39         cp --backup -pv $patch/$package.patch- $patch/$package.patch
40         cp --backup -pv $patch/$package.patch- $src/$cygwin/$package.patch
41     fi
42     rm $patch/$package.patch-
43 }
44     
45 patchsrc () {
46     [ -r $patch/$package.patch -a ! -r $src/$cygwin/$package.patch ] && dopatch
47     cd $src
48     upstream=$(expr "$package" : '\(.*-[-.0-9]*.*\)-[0-9]*')
49     [ -r $netrel_root/src/$upstream -a -r $patch/$package.patch -a $src/$cygwin/mknetrel -nt $patch/$package.patch ] && dodiff
50 }