From 04d7bd6a19011c23939f8fec1a1839dd0a1d119f Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Mon, 4 Dec 2017 22:14:45 +0200 Subject: add use--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} --- use-mpv-custom | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 use-mpv-custom (limited to 'use-mpv-custom') 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" -- cgit v1.2.3