Revert "patch for waflib internals to allow tarball to be created even when using...
[ardour.git] / tools / update_fluidsynth.sh
1 #!/bin/sh
2
3 if ! test -f wscript || ! test -d gtk2_ardour || ! test -d libs/fluidsynth/;then
4         echo "This script needs to run from ardour's top-level src tree"
5         exit 1
6 fi
7
8 if test -z "`which rsync`" -o -z "`which git`"; then
9         echo "this script needs rsync and git"
10         exit 1
11 fi
12
13 ASRC=`pwd`
14 set -e
15
16 TMP=`mktemp -d`
17 test -d "$TMP"
18 echo $TMP
19
20 trap "rm -rf $TMP" EXIT
21
22 cd $TMP
23 git clone git://git.code.sf.net/p/fluidsynth/code-git fs-git
24
25 FSR=fs-git/fluidsynth/
26
27 rsync -auc --info=progress2 \
28         ${FSR}src/midi/fluid_midi.c \
29         ${FSR}src/midi/fluid_midi.h \
30         ${FSR}src/rvoice/fluid_adsr_env.c \
31         ${FSR}src/rvoice/fluid_adsr_env.h \
32         ${FSR}src/rvoice/fluid_chorus.c \
33         ${FSR}src/rvoice/fluid_chorus.h \
34         ${FSR}src/rvoice/fluid_iir_filter.c \
35         ${FSR}src/rvoice/fluid_iir_filter.h \
36         ${FSR}src/rvoice/fluid_lfo.c \
37         ${FSR}src/rvoice/fluid_lfo.h \
38         ${FSR}src/rvoice/fluid_phase.h \
39         ${FSR}src/rvoice/fluid_rev.c \
40         ${FSR}src/rvoice/fluid_rev.h \
41         ${FSR}src/rvoice/fluid_rvoice.c \
42         ${FSR}src/rvoice/fluid_rvoice_dsp.c \
43         ${FSR}src/rvoice/fluid_rvoice_event.c \
44         ${FSR}src/rvoice/fluid_rvoice_event.h \
45         ${FSR}src/rvoice/fluid_rvoice.h \
46         ${FSR}src/rvoice/fluid_rvoice_mixer.c \
47         ${FSR}src/rvoice/fluid_rvoice_mixer.h \
48         ${FSR}src/sfloader/fluid_defsfont.c \
49         ${FSR}src/sfloader/fluid_defsfont.h \
50         ${FSR}src/sfloader/fluid_sfont.h \
51         ${FSR}src/synth/fluid_chan.c \
52         ${FSR}src/synth/fluid_chan.h \
53         ${FSR}src/synth/fluid_event.c \
54         ${FSR}src/synth/fluid_event_priv.h \
55         ${FSR}src/synth/fluid_event_queue.h \
56         ${FSR}src/synth/fluid_gen.c \
57         ${FSR}src/synth/fluid_gen.h \
58         ${FSR}src/synth/fluid_mod.c \
59         ${FSR}src/synth/fluid_mod.h \
60         ${FSR}src/synth/fluid_synth.c \
61         ${FSR}src/synth/fluid_synth.h \
62         ${FSR}src/synth/fluid_tuning.c \
63         ${FSR}src/synth/fluid_tuning.h \
64         ${FSR}src/synth/fluid_voice.c \
65         ${FSR}src/synth/fluid_voice.h \
66         ${FSR}src/utils/fluid_conv.c \
67         ${FSR}src/utils/fluid_conv.h \
68         ${FSR}src/utils/fluid_hash.c \
69         ${FSR}src/utils/fluid_hash.h \
70         ${FSR}src/utils/fluid_list.c \
71         ${FSR}src/utils/fluid_list.h \
72         ${FSR}src/utils/fluid_ringbuffer.c \
73         ${FSR}src/utils/fluid_ringbuffer.h \
74         ${FSR}src/utils/fluid_settings.c \
75         ${FSR}src/utils/fluid_settings.h \
76         ${FSR}src/utils/fluidsynth_priv.h \
77         ${FSR}src/utils/fluid_sys.c \
78         ${FSR}src/utils/fluid_sys.h \
79         \
80         "$ASRC/libs/fluidsynth/src/"
81
82 rsync -auc --info=progress2 \
83         --exclude fluidsynth.h \
84         ${FSR}include/fluidsynth/event.h  \
85         ${FSR}include/fluidsynth/gen.h  \
86         ${FSR}include/fluidsynth/log.h \
87         ${FSR}include/fluidsynth/midi.h \
88         ${FSR}include/fluidsynth/misc.h  \
89         ${FSR}include/fluidsynth/mod.h \
90         ${FSR}include/fluidsynth/settings.h \
91         ${FSR}include/fluidsynth/sfont.h \
92         ${FSR}include/fluidsynth/synth.h \
93         ${FSR}include/fluidsynth/types.h \
94         ${FSR}include/fluidsynth/voice.h \
95         \
96         "$ASRC/libs/fluidsynth/fluidsynth/"
97
98 cd "$ASRC"
99 patch -p1 < tools/ardour_fluidsynth.diff