osxbundle: use mpv's version.sh instead of osxbundle's

This commit is contained in:
ChrisK2 2013-12-09 21:45:09 +01:00
parent 398bfbe4c1
commit 218b9d3737
2 changed files with 1 additions and 16 deletions

View File

@ -103,7 +103,7 @@ def bundle_dependencies(binary_name):
fix_dylibs_paths(target_binary(binary_name), lib_bundle_directory)
def main():
version = sh("TOOLS/osxbundle/version.sh").strip()
version = sh("./version.sh --print").strip()
usage = "usage: %prog [options] arg"
parser = OptionParser(usage)

View File

@ -1,15 +0,0 @@
#!/bin/sh
# Extract revision number from file used by daily tarball snapshots
# or from "git describe" output
git_revision=$(cat snapshot_version 2> /dev/null)
test $git_revision || test ! -d .git || \
git_revision=`git describe --match "v[0-9]*" --always`
git_revision=$(expr "$git_revision" : v*'\(.*\)')
test $git_revision || git_revision=UNKNOWN
# releases extract the version number from the VERSION file
version=$(cat VERSION 2> /dev/null)
test $version || version=$git_revision
echo $version