Skip to content

Commit

Permalink
+utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed May 18, 2011
1 parent a73e37e commit 9ba0144
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions addons/parrot.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ WKPARROTINSTALL=${WKPARROTINSTALL:-'/home/andrew/parrot'}
WKPARROTSTDARGS="--no-line-directives --prefix=$WKPARROTINSTALL" WKPARROTSTDARGS="--no-line-directives --prefix=$WKPARROTINSTALL"


PATH=$PATH:$WKPARROTINSTALL/bin PATH=$PATH:$WKPARROTINSTALL/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WKPARROTINSTALL/lib
LIBRARY_PATH=$LIBRARY_PATH:$WKPARROTINSTALL/lib


# Var to simplify parrot svn operations # Var to simplify parrot svn operations
PARROTSVN="https://svn.parrot.org/parrot" PARROTSVN="https://svn.parrot.org/parrot"
Expand Down Expand Up @@ -97,12 +99,36 @@ function parrot-uninstall {
rm -rfv $WKPARROTINSTALL/* rm -rfv $WKPARROTINSTALL/*
} }


function parrot-install {
parrot-uninstall
pg parrot
if [ -e "Makefile" ]; then
mj realclean
fi
pc && mj && mj install && plumage-install && winxed-install
}

function plumage-install {
pg plumage
parrot setup.pir uninstall
parrot setup.pir clean
parrot setup.pir build
parrot setup.pir install
}

function winxed-install {
plumage uninstall winxed
plumage update winxed
plumage build winxed
plumage install winxed
}

# An end-to-end test of Parrot with a given compiler # An end-to-end test of Parrot with a given compiler
function parrot-smoke { function parrot-smoke {
if [ -e "Makefile" ]; then if [ -e "Makefile" ]; then
make realclean make realclean
fi fi
pc $* && mj && mj smoke pc $* && mj && pt test
} }


# Test everything, end-to-end # Test everything, end-to-end
Expand All @@ -119,20 +145,6 @@ function parrot-testall {
parrot-smoke suncc --optimize parrot-smoke suncc --optimize
} }


# Function to checkout parrot trunk or a particular branch.
function parrot-get {
local PARROTFOLDER=${1:-"parrot"}
# TODO: Should have a way to get the latest RELEASE tag.
if [ ! -e $WKPROJECTS/$PARROTFOLDER ]; then
if [ $PARROTFOLDER == "parrot" ]; then
svn co $PARROTSVN/trunk $WKPROJECTS/parrot
else
svn co $PARROTSVN/branches/$PARROTFOLDER $WKPROJECTS/$PARROTFOLDER
fi
fi
pg $PARROTFOLDER
}

function m { function m {
[ -e ./setup.nqp ] && parrot-nqp setup.nqp $* [ -e ./setup.nqp ] && parrot-nqp setup.nqp $*
[ -e ./setup.pir ] && parrot setup.pir $* [ -e ./setup.pir ] && parrot setup.pir $*
Expand Down

0 comments on commit 9ba0144

Please sign in to comment.