Created
May 5, 2011 18:23
-
-
Save jnoller/957589 to your computer and use it in GitHub Desktop.
pyswap
This file contains 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
function pyswap () { | |
branch=$1 | |
if [ -f "Makefile" ]; then | |
echo "====================== make pycremoval ======================" | |
make pycremoval | |
echo "====================== distclean ======================" | |
make distclean | |
if test $? -ne 0 ; then | |
echo "distclean failed! (may be a clean checkout)?" | |
return 1 | |
fi | |
fi | |
echo "====================== hg up $branch ======================" | |
hg up $branch | |
if test $? -ne 0 ; then | |
echo "hg up to branch $branch failed!" | |
return 1 | |
fi | |
echo "====================== configure ======================" | |
./configure | |
if test $? -ne 0 ; then | |
echo "configure failed!" | |
return 1 | |
fi | |
echo "====================== make ======================" | |
make | |
if test $? -ne 0 ; then | |
echo "make failed!" | |
return 1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment