Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

make-binary.sh 3.2KB

10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #!/bin/bash
  2. set -e
  3. if [ -f Makefile ]; then
  4. cd data/linux
  5. fi
  6. VERSION="1.9.4+git20140823"
  7. if [ ! -f carla-git-static_"$VERSION"_amd64.deb ]; then
  8. wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/carla-git-static_"$VERSION"_amd64.deb
  9. fi
  10. if [ ! -f carla-git-static_"$VERSION"_i386.deb ]; then
  11. wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/carla-git-static_"$VERSION"_i386.deb
  12. fi
  13. if [ ! -d carla-git-static_"$VERSION"_amd64.deb ]; then
  14. dpkg -x carla-git-static_"$VERSION"_amd64.deb carla-git-static_"$VERSION"_amd64
  15. fi
  16. if [ ! -d carla-git-static_"$VERSION"_i386.deb ]; then
  17. dpkg -x carla-git-static_"$VERSION"_i386.deb carla-git-static_"$VERSION"_i386
  18. fi
  19. if [ ! -f unzipfx2cat32 ]; then
  20. wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/unzipfx-carla_1.9.4-0kxstudio1_i386.deb
  21. dpkg -x unzipfx-carla_1.9.4-0kxstudio1_i386.deb tmpfx
  22. mv tmpfx/opt/carla/unzipfx2cat unzipfx2cat32
  23. rm -rf tmpfx
  24. fi
  25. if [ ! -f unzipfx2cat64 ]; then
  26. wget -c https://launchpad.net/~kxstudio-debian/+archive/ubuntu/testing/+files/unzipfx-carla_1.9.4-0kxstudio1_amd64.deb
  27. dpkg -x unzipfx-carla_1.9.4-0kxstudio1_amd64.deb tmpfx
  28. mv tmpfx/opt/carla/unzipfx2cat unzipfx2cat64
  29. rm -rf tmpfx
  30. fi
  31. rm -rf Carla-2.0beta3a-linux32
  32. mkdir Carla-2.0beta3a-linux32
  33. cp -r carla-git-static_"$VERSION"_i386/opt/carla/Carla carla-git-static_"$VERSION"_i386/opt/carla/carla-native.lv2/ Carla-2.0beta3a-linux32
  34. rm -r carla-git-static_"$VERSION"_i386
  35. rm -rf Carla-2.0beta3a-linux64
  36. mkdir Carla-2.0beta3a-linux64
  37. cp -r carla-git-static_"$VERSION"_amd64/opt/carla/Carla carla-git-static_"$VERSION"_amd64/opt/carla/carla-native.lv2/ Carla-2.0beta3a-linux64
  38. rm -r carla-git-static_"$VERSION"_amd64
  39. cd Carla-2.0beta3a-linux32
  40. unzip Carla || true
  41. rm -f Carla carla/*posix32 carla-native.lv2/*posix32
  42. cd ..
  43. cd Carla-2.0beta3a-linux64
  44. unzip Carla || true
  45. rm -f Carla carla/*posix64 carla-native.lv2/*posix64
  46. cd ..
  47. cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux32/carla/
  48. cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux32/carla-native.lv2/
  49. cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux32/carla/
  50. cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux32/carla-native.lv2/
  51. cp /usr/lib/carla/*posix32 Carla-2.0beta3a-linux64/carla/
  52. cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux64/carla/
  53. cp /usr/lib/carla/*win64.exe Carla-2.0beta3a-linux64/carla/
  54. cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux64/carla/
  55. cp /usr/lib/carla/*wine64.dll Carla-2.0beta3a-linux64/carla/
  56. cp /usr/lib/carla/*posix32 Carla-2.0beta3a-linux64/carla-native.lv2/
  57. cp /usr/lib/carla/*win32.exe Carla-2.0beta3a-linux64/carla-native.lv2/
  58. cp /usr/lib/carla/*win64.exe Carla-2.0beta3a-linux64/carla-native.lv2/
  59. cp /usr/lib/carla/*wine32.dll Carla-2.0beta3a-linux64/carla-native.lv2/
  60. cp /usr/lib/carla/*wine64.dll Carla-2.0beta3a-linux64/carla-native.lv2/
  61. cd Carla-2.0beta3a-linux32
  62. zip --symlinks -r -9 carla.zip carla
  63. cat ../unzipfx2cat32 carla.zip > Carla
  64. chmod +x Carla
  65. rm -r carla carla.zip
  66. cd ..
  67. cd Carla-2.0beta3a-linux64
  68. zip --symlinks -r -9 carla.zip carla
  69. cat ../unzipfx2cat64 carla.zip > Carla
  70. chmod +x Carla
  71. rm -r carla carla.zip
  72. cd ..
  73. cp README Carla-2.0beta3a-linux32/
  74. cp README Carla-2.0beta3a-linux64/