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.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
tmp=$(mktemp -d)
|
|
|
|
|
|
|
|
trap cleanup EXIT
|
|
|
|
cleanup() {
|
|
|
|
set +e
|
|
|
|
[ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
|
|
|
|
}
|
|
|
|
|
|
|
|
unset CDPATH
|
|
|
|
pwd=$(pwd)
|
|
|
|
svn=$(date +%Y%m%d)
|
|
|
|
|
|
|
|
cd "$tmp"
|
|
|
|
svn co http://gpac.svn.sourceforge.net/svnroot/gpac/trunk/gpac gpac
|
|
|
|
revision=$(svnversion gpac)
|
|
|
|
echo "#define GPAC_SVN_REVISION \"$revision\"" > gpac/include/gpac/version.h
|
|
|
|
find gpac -name '.svn' -type d -exec rm -rf {} ';' || :
|
|
|
|
rm -rf gpac/extra_lib/
|
|
|
|
tar jcf "$pwd"/gpac-$svn.tar.bz2 gpac
|
|
|
|
cd - >/dev/null
|