mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
allow to update libaaf from a local directory
This commit is contained in:
parent
1f689cac42
commit
156563a36f
1 changed files with 25 additions and 12 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
LOCAL_AAF_PROJECT="$1"
|
||||||
|
|
||||||
if ! test -f wscript || ! test -d gtk2_ardour; then
|
if ! test -f wscript || ! test -d gtk2_ardour; then
|
||||||
echo "This script needs to run from ardour's top-level src tree"
|
echo "This script needs to run from ardour's top-level src tree"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -14,23 +16,34 @@ ASRC=`pwd`
|
||||||
set -e
|
set -e
|
||||||
mkdir -p "$ASRC/libs/aaf/aaf"
|
mkdir -p "$ASRC/libs/aaf/aaf"
|
||||||
|
|
||||||
TMP=`mktemp -d`
|
if [ -z "${LOCAL_AAF_PROJECT}" ]; then
|
||||||
test -d "$TMP"
|
# Using git repos
|
||||||
echo $TMP
|
TMP=`mktemp -d`
|
||||||
|
test -d "$TMP"
|
||||||
|
echo $TMP
|
||||||
|
|
||||||
trap "rm -rf $TMP" EXIT
|
trap "rm -rf $TMP" EXIT
|
||||||
|
|
||||||
cd $TMP
|
cd $TMP
|
||||||
git clone https://github.com/agfline/LibAAF.git aaf
|
git clone https://github.com/agfline/LibAAF.git aaf
|
||||||
|
|
||||||
cd aaf
|
cd aaf
|
||||||
git describe --tags
|
git describe --tags
|
||||||
LIBAAF_VERSION=$(git describe --tags --dirty --match "v*")
|
LIBAAF_VERSION=$(git describe --tags --dirty --match "v*")
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
|
||||||
AAF=aaf/
|
AAF=aaf/
|
||||||
|
RSYNC_OPT="-auc --info=progress2"
|
||||||
|
else
|
||||||
|
# Using local project
|
||||||
|
LIBAAF_VERSION="v0-local"
|
||||||
|
cd "${LOCAL_AAF_PROJECT}"
|
||||||
|
echo $PWD
|
||||||
|
AAF="./"
|
||||||
|
RSYNC_OPT="-ac --info=progress2"
|
||||||
|
fi
|
||||||
|
|
||||||
rsync -auc --info=progress2 \
|
rsync $RSYNC_OPT \
|
||||||
${AAF}src/LibCFB/LibCFB.c \
|
${AAF}src/LibCFB/LibCFB.c \
|
||||||
${AAF}src/LibCFB/CFBDump.c \
|
${AAF}src/LibCFB/CFBDump.c \
|
||||||
${AAF}src/AAFCore/AAFCore.c \
|
${AAF}src/AAFCore/AAFCore.c \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue