diff options
author | James Meyer <james.meyer@operamail.com> | 2010-10-27 01:51:28 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-10-27 01:51:28 (GMT) |
commit | 9015d3a3f45be618245c8146ae6242662b21fa94 (patch) | |
tree | ae330f746f2dd9eb4bd2fab26eaced4311cc0f93 /build_tools/bin/mp | |
parent | 0e4b74030edd77bf534a7167da50c0e5c706ed14 (diff) | |
download | linhes_dev-9015d3a3f45be618245c8146ae6242662b21fa94.zip |
mp: change program to use git to check for -testing
profiles: minor changes for testing local
Diffstat (limited to 'build_tools/bin/mp')
-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)" |