/[svn]/misc/trunk/mac_package_builder/make-tar-file.sh
ViewVC logotype

Contents of /misc/trunk/mac_package_builder/make-tar-file.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2211 - (show annotations) (download) (as text)
Mon Jul 18 17:39:44 2011 UTC (10 years, 4 months ago) by persson
File MIME type: application/x-sh
File size: 1538 byte(s)
* Added Mac package building scripts
1 #!/bin/sh -xe
2
3 # This script is primarily made for the linuxsampler build server. It
4 # copies the files created by the previous Max OS X build steps, and
5 # creates universal binaries from the i686, x86_64 and powerpc
6 # files. Finally, it packs everything in a tar.bz2 archive.
7
8 LIPO=x86_64-apple-darwin9-lipo
9 P=/home/persson/mac
10 D=linuxsampler_`date +%Y%m%d`
11
12 createuniv ()
13 {
14 $LIPO -create "$P/x86_64/$1" "$P/i686/$1" "$P/powerpc/$1" \
15 -output "$D/${2-$1}"
16 }
17
18
19 rm -rf linuxsampler_*
20 mkdir -p "$D/LinuxSampler" "$D/lib"
21
22
23 # linuxsampler, libgig and dependencies
24
25 createuniv lib/libogg.0.dylib
26 createuniv lib/libvorbis.0.dylib
27 createuniv lib/libvorbisenc.2.dylib
28 createuniv lib/libFLAC.8.2.0.dylib
29 ln -s libFLAC.8.2.0.dylib "$D/lib/libFLAC.8.dylib"
30 createuniv lib/libsndfile.1.dylib
31 createuniv lib/libgig.6.dylib
32 createuniv lib/linuxsampler/liblinuxsampler.3.dylib lib/liblinuxsampler.3.dylib
33 createuniv bin/linuxsampler LinuxSampler/linuxsampler
34 cp REAMDE "$D"
35 cp licenses.txt "$D/LinuxSampler"
36
37 # AU plugin
38
39 cp -r "$P/i686/Components/LinuxSamplerAU.component" "$D"
40 createuniv Components/LinuxSamplerAU.component/Contents/MacOS/LinuxSamplerAU LinuxSamplerAU.component/Contents/MacOS/LinuxSamplerAU
41
42
43 # VST plugin
44
45 cp -r "$P/i686/VST/LinuxSampler.vst" "$D"
46 createuniv VST/LinuxSampler.vst/Contents/MacOS/LinuxSampler LinuxSampler.vst/Contents/MacOS/LinuxSampler
47
48
49 # Fantasia
50
51 cp -r "$P/Fantasia.app" "$D/LinuxSampler"
52
53
54 # QSampler
55
56 ./make-qsampler-app.sh
57 mv qsampler.app "$D/LinuxSampler"
58
59
60 # package
61
62 tar cjf "$D.tar.bz2" "$D"

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC