|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #!/bin/bash
-
- set -e
-
- if [ -f Makefile ]; then
- cd data/linux
- fi
-
- VERSION="1.9.4+git20140823"
-
- if [ ! -f carla-git-static_"$VERSION"_amd64.deb ]; then
- wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/carla-git-static_"$VERSION"_amd64.deb
- fi
-
- if [ ! -f carla-git-static_"$VERSION"_i386.deb ]; then
- wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/carla-git-static_"$VERSION"_i386.deb
- fi
-
- if [ ! -d carla-git-static_"$VERSION"_amd64.deb ]; then
- dpkg -x carla-git-static_"$VERSION"_amd64.deb carla-git-static_"$VERSION"_amd64
- fi
-
- if [ ! -d carla-git-static_"$VERSION"_i386.deb ]; then
- dpkg -x carla-git-static_"$VERSION"_i386.deb carla-git-static_"$VERSION"_i386
- fi
-
- if [ ! -f unzipfx2cat32 ]; then
- wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/unzipfx-carla_1.9.4-0kxstudio1_i386.deb
- dpkg -x unzipfx-carla_1.9.4-0kxstudio1_i386.deb tmpfx
- mv tmpfx/opt/carla/unzipfx2cat unzipfx2cat32
- rm -rf tmpfx
- fi
-
- if [ ! -f unzipfx2cat64 ]; then
- wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/unzipfx-carla_1.9.4-0kxstudio1_amd64.deb
- dpkg -x unzipfx-carla_1.9.4-0kxstudio1_amd64.deb tmpfx
- mv tmpfx/opt/carla/unzipfx2cat unzipfx2cat64
- rm -rf tmpfx
- fi
-
- rm -rf Carla-2.0beta3a-linux32
- mkdir Carla-2.0beta3a-linux32
- cp -r carla-git-static_"$VERSION"_i386/opt/carla/Carla carla-git-static_"$VERSION"_i386/opt/carla/carla-native.lv2/ Carla-2.0beta3a-linux32
- rm -r carla-git-static_"$VERSION"_i386
-
- rm -rf Carla-2.0beta3a-linux64
- mkdir Carla-2.0beta3a-linux64
- cp -r carla-git-static_"$VERSION"_amd64/opt/carla/Carla carla-git-static_"$VERSION"_amd64/opt/carla/carla-native.lv2/ Carla-2.0beta3a-linux64
- rm -r carla-git-static_"$VERSION"_amd64
-
- cd Carla-2.0beta3a-linux32
- unzip Carla || true
- rm -f Carla carla/*posix32 carla-native.lv2/*posix32
- cd ..
-
- cd Carla-2.0beta3a-linux64
- unzip Carla || true
- rm -f Carla carla/*posix64 carla-native.lv2/*posix64
- cd ..
-
- cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux32/carla/
- cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux32/carla-native.lv2/
- cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux32/carla/
- cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux32/carla-native.lv2/
-
- cp /usr/lib/carla/*posix32 Carla-2.0beta3a-linux64/carla/
- cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux64/carla/
- cp /usr/lib/carla/*win64.exe Carla-2.0beta3a-linux64/carla/
- cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux64/carla/
- cp /usr/lib/carla/*wine64.dll Carla-2.0beta3a-linux64/carla/
- cp /usr/lib/carla/*posix32 Carla-2.0beta3a-linux64/carla-native.lv2/
- cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux64/carla-native.lv2/
- cp /usr/lib/carla/*win64.exe Carla-2.0beta3a-linux64/carla-native.lv2/
- cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux64/carla-native.lv2/
- cp /usr/lib/carla/*wine64.dll Carla-2.0beta3a-linux64/carla-native.lv2/
-
- cd Carla-2.0beta3a-linux32
- zip --symlinks -r -9 carla.zip carla
- cat ../unzipfx2cat32 carla.zip > Carla
- chmod +x Carla
- rm -r carla carla.zip
- cd ..
-
- cd Carla-2.0beta3a-linux64
- zip --symlinks -r -9 carla.zip carla
- cat ../unzipfx2cat64 carla.zip > Carla
- chmod +x Carla
- rm -r carla carla.zip
- cd ..
-
- cp README Carla-2.0beta3a-linux32/
- cp README Carla-2.0beta3a-linux64/
|