diff options
Diffstat (limited to 'build_tools/bin')
-rwxr-xr-x | build_tools/bin/mp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/build_tools/bin/mp b/build_tools/bin/mp index 3b1992c..08d7b89 100755 --- a/build_tools/bin/mp +++ b/build_tools/bin/mp @@ -10,12 +10,22 @@ SRCPKGHOME=/data/pkg_repo/src_packages mydir=`pwd` repolist="core extra" cmdline=$@ -if [ x`basename $0` = xmpr ] -then - PFIX="" -else - PFIX="-testing" -fi + +git_branch=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` + +case $git_branch in + "testing") PFIX="-testing" ;; + "master" ) PFIX="" ;; + * ) echo "can't determine which is in use";; + esac + + +#if [ x`basename $0` = xmpr ] +#then +# PFIX="" +#else +# PFIX="-testing" +#fi ALL_OFF="$(tput sgr0)" BOLD="$(tput bold)" BLUE="${BOLD}$(tput setaf 4)" |