diff options
author | prigaux <[email protected]> | 2007-02-11 20:00:15 +0000 |
---|---|---|
committer | prigaux <[email protected]> | 2007-02-11 20:00:15 +0000 |
commit | a74fd5a1ec37e53fe7008f022639af6ede0e82c9 (patch) | |
tree | 0a6a32640a840b72653149aa11efa264674df976 /DownloadMacOsXContribBinaries.sh | |
parent | f45dfeb2afb1b0bf46054959e8ea9494f3b7d14f (diff) |
Merge the 0.8.0_mpeg4ip branch into the trunk
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@285 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'DownloadMacOsXContribBinaries.sh')
-rwxr-xr-x | DownloadMacOsXContribBinaries.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/DownloadMacOsXContribBinaries.sh b/DownloadMacOsXContribBinaries.sh new file mode 100755 index 000000000..93be47cd6 --- /dev/null +++ b/DownloadMacOsXContribBinaries.sh @@ -0,0 +1,32 @@ +#! /bin/sh + +# Incremented every time a new contrib package is available +VERSION=`cat MacOsXContribBinariesVersion.txt` + +if [ -f contrib/DarwinContribVersion.txt ]; then + if [ "`cat contrib/DarwinContribVersion.txt`" = $VERSION ]; then + echo "Contribs are up to date." + exit 0 + fi +fi + +HOST=download.m0k.org +FILE=contribbin-darwin-$VERSION.tar.gz +URL=http://download.mediafork.dynalias.com/contrib/$FILE + +# Check for internet connectivity +if ! host $HOST > /dev/null 2>&1; then + echo "Please connect to the Internet (could not resolve $HOST)." + exit 1 +fi + +# Look for something that can handle an HTTP download + WGET="curl -L -O" + +# Get and install the package +echo "Getting contribs ($VERSION)..." +( cd contrib && rm -f $FILE && $WGET $URL && rm -Rf lib include && \ + tar xzf $FILE && ranlib lib/*.a ) || exit 1 + +exit 0 + |