diff options
author | wm4 <wm4@nowhere> | 2014-10-27 18:23:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-27 18:23:59 +0100 |
commit | a85d34bf9b0570b028533e3f96675fceec49ba86 (patch) | |
tree | 5cc32ff3fccd05c117a8e03edb81f0119fe99431 /scripts | |
parent | b38387044631aa433ae1612efbe9b1ed1e264b51 (diff) | |
download | mpv-build-a85d34bf9b0570b028533e3f96675fceec49ba86.tar.bz2 mpv-build-a85d34bf9b0570b028533e3f96675fceec49ba86.tar.xz |
Add a simpler way to switch between release and master versions
This remembers the selection, and users are not tricked into
accidentally switching back to the release all the time.
Don't do this for libass, we always use master. (No reason to use a
usually buggy and outdated release.)
We don't do it for fribidi either, because fribidi is just in a
permanent state of bitrotting and brokenness.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/switch-branch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/switch-branch b/scripts/switch-branch new file mode 100755 index 0000000..b2cd407 --- /dev/null +++ b/scripts/switch-branch @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +mkdir -p config + +FILENAME="branch-$1" +BRANCH="$2" +echo "$BRANCH" > config/"$FILENAME" + +echo "Run ./rebuild to update the source and to compile the selected branch." |