summaryrefslogtreecommitdiffstats
path: root/use-mpv-custom
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2017-12-04 22:14:45 +0200
committerKevin Mitchell <kevmitch@gmail.com>2017-12-05 23:53:19 -0800
commit04d7bd6a19011c23939f8fec1a1839dd0a1d119f (patch)
tree045dc927dd2f9e86d7b3228059ce5220c3acc2da /use-mpv-custom
parentdb21368c91ce789acab5fa0edd21c2c30525dbf3 (diff)
downloadmpv-build-04d7bd6a19011c23939f8fec1a1839dd0a1d119f.tar.bz2
mpv-build-04d7bd6a19011c23939f8fec1a1839dd0a1d119f.tar.xz
add use-<proj>-custom FOO for any commit/branch/tag
While it was possible before to build any branch of mpv/ffmpeg/etc by just git checkout $whatever and then ./build, it got reset after ./rebuild or ./update etc. Add use-mpv-custom and use-ffmpeg-custom which accept any commit/branch/tag which will survive ./rebuild, ./update, etc. This should make it slightly easier to build past versions of mpv. While at it, also add use-libass-{master|custom}
Diffstat (limited to 'use-mpv-custom')
-rwxr-xr-xuse-mpv-custom10
1 files changed, 10 insertions, 0 deletions
diff --git a/use-mpv-custom b/use-mpv-custom
new file mode 100755
index 0000000..cea8d10
--- /dev/null
+++ b/use-mpv-custom
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+export LC_ALL=C
+
+if [ -z "$1" ]; then
+ echo "Aborting. Please provide a commit hash or a tag/branch name."
+ exit 1
+fi
+
+scripts/switch-branch mpv "@$1"