summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/build
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linux_packaging/build')
-rwxr-xr-xtools/linux_packaging/build30
1 files changed, 24 insertions, 6 deletions
diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build
index 2742ca9e37..72e60257f0 100755
--- a/tools/linux_packaging/build
+++ b/tools/linux_packaging/build
@@ -14,6 +14,11 @@ ARDOURSTACK_ROOT=$HOME/a3/inst
# the waf build tree to use when copying built/generated files
BUILD_ROOT=../../build
+# where harvid and xjadeo binaries are cached
+if test -z "$CACHEDIR" -o ! -d "$CACHEDIR"; then
+ CACHEDIR=`pwd`
+fi
+
MIXBUS=
WITH_LADSPA=0
WITH_HARVID=
@@ -24,6 +29,7 @@ EXTERNAL_JACK=
VENDOR=Ardour ;
BUILDTYPE=""
+
if [ $# -eq 0 ] ; then
echo ""
echo "ERROR - Please specify build type"
@@ -529,12 +535,24 @@ done
if test x$WITH_HARVID != x ; then
cd $APPBIN
- HARVID_VERSION=$(curl http://ardour.org/files/video-tools/harvid_version.txt)
- curl -L http://ardour.org/files/video-tools/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz \
- | tar -x -z --exclude=README --exclude=harvid.1 --strip-components=1 || exit 1
- XJADEO_VERSION=$(curl http://ardour.org/files/video-tools/xjadeo_version.txt)
- curl -L http://ardour.org/files/video-tools/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz \
- | tar -x -z --exclude=README --exclude=xjadeo.1 --strip-components=1 || exit 1
+ HARVID_VERSION=$(curl -s -S http://ardour.org/files/video-tools/harvid_version.txt)
+ XJADEO_VERSION=$(curl -s -S http://ardour.org/files/video-tools/xjadeo_version.txt)
+
+ rsync -Pa \
+ rsync://ardour.org/video-tools/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz \
+ "$CACHEDIR/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz"
+
+ rsync -Pa \
+ rsync://ardour.org/video-tools/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz \
+ "$CACHEDIR/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz"
+
+ tar -x -z \
+ --exclude=README --exclude=harvid.1 --strip-components=1 \
+ -f "$CACHEDIR/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz" || exit 1
+
+ tar -x -z \
+ --exclude=README --exclude=xjadeo.1 --strip-components=1 \
+ -f "$CACHEDIR/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz" || exit 1
mv xjadeo xjremote
cd -
fi