Moves shared helper scripts to the buildroot

This commit is contained in:
João Brázio
2016-05-20 02:25:13 +01:00
parent 61de6daf1d
commit 14652bb141
11 changed files with 0 additions and 0 deletions

21
buildroot/share/git/mfrb Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# mfrb
#
# Do "git rebase -i" against the "target" branch (RCBugFix or dev)
#
MFINFO=$(mfinfo) || exit
IFS=' ' read -a INFO <<< "$MFINFO"
if [[ ${INFO[4]} == "(no" ]]; then
echo "Branch is unavailable!"
exit 1
fi
case "$#" in
0 ) ;;
* ) echo "Usage: `basename $0`" 1>&2 ; exit 1 ;;
esac
git rebase -i ${INFO[3]}