diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-14 18:12:55 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-06-14 18:12:55 +0200 |
commit | 377a016d59f36719c5e8341146413d5a5d37db1b (patch) | |
tree | 9e4b61ff0c488f9d0e1dc2f85890dc1fbc435e31 /tools/linux_packaging/build | |
parent | 12584b7a7a90aa4ae48c59b72b9b251e151e079c (diff) |
packaging scripts: use rsync for video-tools
Diffstat (limited to 'tools/linux_packaging/build')
-rwxr-xr-x | tools/linux_packaging/build | 30 |
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 |