1 |
persson |
2145 |
#!/bin/sh -ex |
2 |
|
|
|
3 |
|
|
# This script is primarily made for the linuxsampler build server. It |
4 |
|
|
# copies all files to be included in the installer from the |
5 |
|
|
# installation directories on the build server to the bin directory. |
6 |
|
|
|
7 |
|
|
# win32 ----------------------------------------------------------- |
8 |
|
|
|
9 |
|
|
BIN=`pwd`/bin |
10 |
|
|
DIST=$BIN/686 |
11 |
|
|
WIN=/home/persson/win32 |
12 |
|
|
rm -rf $DIST |
13 |
|
|
mkdir -p $DIST |
14 |
|
|
cd $WIN/bin |
15 |
|
|
cp libgig-6.dll libsndfile-1.dll libsqlite3-0.dll \ |
16 |
|
|
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
17 |
|
|
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe \ |
18 |
|
|
linuxsampler.exe \ |
19 |
|
|
gigedit.exe \ |
20 |
|
|
liblscp-6.dll qsampler.exe \ |
21 |
|
|
$DIST |
22 |
|
|
cd $WIN/gtkmm/redist |
23 |
|
|
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
24 |
|
|
libcairomm-1.0-1.dll libgdkmm-2.4-1.dll \ |
25 |
|
|
libgdk_pixbuf-2.0-0.dll libgdk-win32-2.0-0.dll \ |
26 |
|
|
libgio-2.0-0.dll libgiomm-2.4-1.dll libglib-2.0-0.dll \ |
27 |
|
|
libglibmm-2.4-1.dll libgmodule-2.0-0.dll \ |
28 |
|
|
libgobject-2.0-0.dll libgthread-2.0-0.dll \ |
29 |
|
|
libgtkmm-2.4-1.dll libgtk-win32-2.0-0.dll \ |
30 |
|
|
intl.dll jpeg62.dll libpango-1.0-0.dll \ |
31 |
|
|
libpangocairo-1.0-0.dll libpangomm-1.4-1.dll \ |
32 |
|
|
libpangowin32-1.0-0.dll libpng12-0.dll libsigc-2.0-0.dll \ |
33 |
|
|
libtiff3.dll zlib1.dll \ |
34 |
|
|
$DIST |
35 |
|
|
cd $WIN/lib/bin |
36 |
|
|
cp libgigedit-2.dll liblinuxsampler-3.dll $DIST |
37 |
|
|
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
38 |
|
|
mkdir -p $DIST/plugins |
39 |
|
|
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
40 |
|
|
$DIST/plugins |
41 |
|
|
cd $DIST |
42 |
|
|
(cd $WIN/gtkmm ; tar cf - \ |
43 |
|
|
etc/gtk-2.0/gtkrc \ |
44 |
|
|
etc/gtk-2.0/gdk-pixbuf.loaders \ |
45 |
|
|
lib/gtk-2.0/2.10.0/engines/libwimp.dll \ |
46 |
|
|
lib/gtk-2.0/2.10.0/loaders \ |
47 |
|
|
share/themes/MS-Windows \ |
48 |
|
|
share/locale/de/LC_MESSAGES/gtk20.mo \ |
49 |
|
|
share/locale/sv/LC_MESSAGES/gtk20.mo) | tar xf - |
50 |
|
|
(cd $WIN ; tar cf - \ |
51 |
|
|
share/locale/de/LC_MESSAGES/gigedit.mo \ |
52 |
|
|
share/locale/sv/LC_MESSAGES/gigedit.mo) | tar xf - |
53 |
|
|
cd $WIN/qt/bin |
54 |
|
|
cp QtCore4.dll QtGui4.dll mingwm10.dll libgcc_s_dw2-1.dll $DIST |
55 |
|
|
cd $WIN/qt/translations |
56 |
|
|
cp qt_ru.qm qt_cs.qm $DIST/share/locale |
57 |
|
|
cd $WIN/share/locale |
58 |
|
|
cp qsampler_ru.qm qsampler_cs.qm $DIST/share/locale |
59 |
|
|
cd $WIN/share |
60 |
|
|
cp qsampler.version gigedit.version $DIST |
61 |
|
|
cd $WIN/lib/pkgconfig |
62 |
|
|
cp gig.pc linuxsampler.pc sndfile.pc $DIST |
63 |
|
|
|
64 |
|
|
# win32sse -------------------------------------------------------- |
65 |
|
|
|
66 |
|
|
DIST=$BIN/686sse |
67 |
|
|
WIN=/home/persson/win32sse |
68 |
|
|
|
69 |
|
|
rm -rf $DIST |
70 |
|
|
mkdir -p $DIST |
71 |
|
|
cd $WIN/bin |
72 |
|
|
cp libgig-6.dll \ |
73 |
|
|
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe \ |
74 |
|
|
linuxsampler.exe \ |
75 |
|
|
$DIST |
76 |
|
|
cd $WIN/lib/bin |
77 |
|
|
cp liblinuxsampler-3.dll $DIST |
78 |
|
|
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
79 |
|
|
|
80 |
|
|
|
81 |
|
|
# win64 ----------------------------------------------------------- |
82 |
|
|
|
83 |
|
|
DIST=$BIN/64 |
84 |
|
|
WIN=/home/persson/win64 |
85 |
|
|
|
86 |
|
|
rm -rf $DIST |
87 |
|
|
mkdir -p $DIST |
88 |
|
|
cd $WIN/bin |
89 |
|
|
cp libgig-6.dll libsndfile-1.dll libsqlite3-0.dll \ |
90 |
|
|
libFLAC-8.dll libogg-0.dll libvorbis-0.dll libvorbisenc-2.dll \ |
91 |
|
|
rifftree.exe dlsdump.exe gigdump.exe gigextract.exe \ |
92 |
|
|
linuxsampler.exe gigedit.exe \ |
93 |
|
|
$DIST |
94 |
|
|
cd $WIN/gtkmm/bin |
95 |
|
|
cp libatk-1.0-0.dll libatkmm-1.6-1.dll libcairo-2.dll \ |
96 |
|
|
libcairomm-1.0-1.dll libgdkmm-2.4-1.dll \ |
97 |
|
|
libgdk_pixbuf-2.0-0.dll libgdk-win32-2.0-0.dll \ |
98 |
|
|
libgio-2.0-0.dll libgiomm-2.4-1.dll libglib-2.0-0.dll \ |
99 |
|
|
libglibmm-2.4-1.dll libgmodule-2.0-0.dll \ |
100 |
|
|
libgobject-2.0-0.dll libgthread-2.0-0.dll \ |
101 |
|
|
libgtkmm-2.4-1.dll libgtk-win32-2.0-0.dll \ |
102 |
|
|
libintl-8.dll libpango-1.0-0.dll libfontconfig-1.dll \ |
103 |
|
|
libpangocairo-1.0-0.dll libpangomm-1.4-1.dll \ |
104 |
|
|
libpangowin32-1.0-0.dll libpng14-14.dll libsigc-2.0-0.dll \ |
105 |
|
|
zlib1.dll libexpat-1.dll libfreetype-6.dll \ |
106 |
|
|
libpangoft2-1.0-0.dll \ |
107 |
|
|
$DIST |
108 |
|
|
cd ../../.. |
109 |
|
|
mkdir -p $DIST/etc/gtk-2.0 |
110 |
|
|
echo "gtk-theme-name = \"MS-Windows\"" > $DIST/etc/gtk-2.0/gtkrc |
111 |
|
|
cd mingw64/bin |
112 |
|
|
cp libgcc_s_sjlj-1.dll libstdc++-6.dll $DIST |
113 |
|
|
cd $WIN/lib/bin |
114 |
|
|
cp libgigedit-2.dll liblinuxsampler-3.dll $DIST |
115 |
|
|
cp $WIN/lib/vst/LinuxSampler.dll $DIST |
116 |
|
|
mkdir -p $DIST/plugins |
117 |
|
|
cp $WIN/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.dll \ |
118 |
|
|
$DIST/plugins |
119 |
|
|
cd $DIST |
120 |
|
|
(cd $WIN/gtkmm ; tar cf - \ |
121 |
|
|
lib/gtk-2.0/2.10.0/engines/libwimp.dll \ |
122 |
|
|
share/themes/MS-Windows \ |
123 |
|
|
share/locale/de/LC_MESSAGES/gtk20.mo \ |
124 |
|
|
share/locale/sv/LC_MESSAGES/gtk20.mo) | tar xf - |
125 |
|
|
(cd $WIN ; tar cf - \ |
126 |
|
|
share/locale/de/LC_MESSAGES/gigedit.mo \ |
127 |
|
|
share/locale/sv/LC_MESSAGES/gigedit.mo) | tar xf - |
128 |
|
|
cd $DIST |
129 |
|
|
|
130 |
|
|
|
131 |
|
|
# Fantasia -------------------------------------------------------- |
132 |
|
|
|
133 |
|
|
cp /home/persson/share/java/Fantasia-0.9.jar $BIN |