# 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=0
+WITH_HARVID=
STRIP=all
PRINT_SYSDEPS=
WITH_NLS=
VENDOR=Ardour ;
BUILDTYPE=""
+
if [ $# -eq 0 ] ; then
echo ""
echo "ERROR - Please specify build type"
exit 1
fi
-. ./define_versions.sh
+. ../define_versions.sh
echo "Version is $version / $commit"
info_string="$version ($commit) built on `hostname` by `whoami` on `date`"
mkdir -p $ExportFormats
mkdir -p $Panners
mkdir -p $Templates
-mkdir -p $Shared/templates
mkdir -p $Shared/doc
# maybe set variables
sed -e "/^%ENV%/r $ENVIRONMENT" -e '/^%ENV%/d' -e 's/%VER%/'"${release_version}"'/' < ardour.sh.in > $APPBIN/ardour3
rm $ENVIRONMENT && chmod 775 $APPBIN/ardour3
-# the 3.0 here is not the same as "release-version" because the latter may include "-betaN" etc.
-MAIN_EXECUTABLE=ardour-3.0
+MAIN_EXECUTABLE=ardour-${release_version}
echo "Copying ardour executable ...."
cp $BUILD_ROOT/gtk2_ardour/$MAIN_EXECUTABLE $APPBIN
done
# Templates
-for f in $BUILD_ROOT/../templates/* ; do
- if [ -d "$f" ] ; then
- echo Template: $f ; cp -r "$f" $Templates ;
- fi
-done
+#for f in $BUILD_ROOT/../templates/* ; do
+# if [ -d "$f" ] ; then
+# echo Template: $f ; cp -r "$f" $Templates ;
+# fi
+#done
# ExportFormats
# got to be careful with names here
if test x$WITH_HARVID != x ; then
cd $APPBIN
- HARVID_VERSION="v0.7.0" # todo make 'latest' symlink on github work somehow.
- curl -L http://x42.github.com/harvid/releases/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz \
- | tar -x -z --exclude=README --exclude=harvid.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