mirror of
https://github.com/mpv-player/mpv
synced 2024-10-02 16:25:33 +02:00
osxbundle: use mpv's version.sh instead of osxbundle's
This commit is contained in:
parent
398bfbe4c1
commit
218b9d3737
@ -103,7 +103,7 @@ def bundle_dependencies(binary_name):
|
|||||||
fix_dylibs_paths(target_binary(binary_name), lib_bundle_directory)
|
fix_dylibs_paths(target_binary(binary_name), lib_bundle_directory)
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
version = sh("TOOLS/osxbundle/version.sh").strip()
|
version = sh("./version.sh --print").strip()
|
||||||
|
|
||||||
usage = "usage: %prog [options] arg"
|
usage = "usage: %prog [options] arg"
|
||||||
parser = OptionParser(usage)
|
parser = OptionParser(usage)
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user