-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.sh
executable file
·124 lines (102 loc) · 2.6 KB
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
function fail
{
echo aborting, $BUILDDIR might contain cruft from the interrupted command
exit
}
VERSION=$1
if [ "$VERSION" = "" ]; then
echo usage: package.sh version
exit
fi
DISTDIR="dist/"
VERSIONDIR="foo-yc20-"$VERSION
BUILDDIR=$DISTDIR$VERSIONDIR
if [ -d $BUILDDIR ]; then
echo $BUILDDIR: already exists
exit
fi
trap fail ERR
mkdir -p $BUILDDIR
mkdir $BUILDDIR/gen
mkdir $BUILDDIR/faust
mkdir $BUILDDIR/include
mkdir $BUILDDIR/src
mkdir $BUILDDIR/src/foo-yc20.lv2
mkdir $BUILDDIR/graphics
cp -n foo-yc20.desktop.in \
LICENSE \
LICENSE-cairographics-LGPL-2.1 \
LICENSE-cairographics-MPL-1.1 \
README \
$BUILDDIR/
cat Makefile | sed 's/^VERSION=/VERSION='$VERSION'/' > $BUILDDIR/Makefile
cp -n gen/yc20-dsp-plugin.cpp \
gen/yc20-dsp-standalone.cpp \
$BUILDDIR/gen
cp -n src/configuration.cpp \
src/faust-dsp-plugin.cpp \
src/faust-dsp-standalone.cpp \
src/foo-yc20.cpp \
src/foo-yc20-ui2.cpp \
src/foo-yc20-ui.cpp \
src/yc20-base-ui.cpp \
src/lv2.cpp \
src/lv2-ui.cpp \
src/main-cli.cpp \
src/main-gui.cpp \
src/polyblep.cpp \
src/yc20-jack.cpp \
src/graphics.cpp \
src/vsti.cpp \
src/vsti.def \
src/win32.rc \
$BUILDDIR/src
cp -n src/foo-yc20.lv2/foo-yc20.ttl \
src/foo-yc20.lv2/manifest.ttl \
$BUILDDIR/src/foo-yc20.lv2
cp -n include/faust-dsp.h \
include/foo-yc20.h \
include/foo-yc20-os.h \
include/foo-yc20-ui2.h \
include/foo-yc20-ui.h \
include/yc20-base-ui.h \
include/wdgt.h \
include/yc20-jack.h \
include/yc20_wdgts.h \
include/graphics.h \
include/graphics-png.h \
$BUILDDIR/include
cp -nr include/lv2 $BUILDDIR/include
rm -rf $(find $BUILDDIR/include -name .svn)
cp -n graphics/white_[0-3].png \
graphics/black_[0-3].png \
graphics/green_[0-3].png \
graphics/background-red.png \
graphics/background-black.png \
graphics/background-white.png \
graphics/background-blue.png \
graphics/license.png \
graphics/potentiometer.png \
graphics/icon.png \
graphics/foo-yc20.ico \
$BUILDDIR/graphics
# Make sure the PNG header is as new as the PNGs
touch $BUILDDIR/graphics/*.png $BUILDDIR/include/graphics-png.h
cp -n faust/biquad.dsp \
faust/blep.dsp \
faust/divider.dsp \
faust/keyboard.dsp \
faust/mixer.dsp \
faust/oscillator.dsp \
faust/percussion.dsp \
faust/plugin.dsp \
faust/rc_filter.dsp \
faust/standalone.dsp \
faust/vibrato.dsp \
faust/wave_transformer.dsp \
faust/yc20.dsp \
$BUILDDIR/faust
cd $DISTDIR
tar cjf $VERSIONDIR".tar.bz2" $VERSIONDIR
echo $VERSIONDIR".tar.bz2" is ready