Last active
August 29, 2015 14:06
-
-
Save rmamba/c023f7160eda44f49539 to your computer and use it in GitHub Desktop.
qt5checkout.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Checkout qt5 submodules to specific branch/tag | |
# call as 'git submodule foreach /path/to/qt5checkout.sh 5.4' | |
if git show-ref | grep -q refs/remotes/origin/$1 ; then | |
echo -e '\e[31mgit checkout ...' | |
git checkout "$1" | |
echo -e '\e[32mgit pull ...' | |
git pull | |
echo -e '\e[39m' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment