Skip to content

Commit

Permalink
add a PARROTSVN global var
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Mar 21, 2010
1 parent b9afc02 commit 596bd60
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions addons/parrot.sh
Expand Up @@ -8,9 +8,12 @@
alias pcn="parrot-nqp Configure.nqp"
alias pcs="parrot setup.pir build"

#Setup some arguments that are always used to configure Parrot
# Setup some arguments that are always used to configure Parrot
WKPARROTSTDARGS="--no-line-directives"

# Var to simplify parrot svn operations
PARROTSVN="https://svn.parrot.org/parrot"

# Parrot configuration. If the first argument is the name of a supported compiler,
# use that compiler. Otherwise all arguments are passed to Configure.pl
function pc {
Expand Down Expand Up @@ -97,11 +100,12 @@ function parrot-smoke {
# 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 https://svn.parrot.org/parrot/trunk $WKPROJECTS/parrot
svn co $PARROTSVN/trunk $WKPROJECTS/parrot
else
svn co https://svn.parrot.org/parrot/branches/$PARROTFOLDER $WKPROJECTS/$PARROTFOLDER
svn co $PARROTSVN/branches/$PARROTFOLDER $WKPROJECTS/$PARROTFOLDER
fi
fi
pg $PARROTFOLDER
Expand Down

0 comments on commit 596bd60

Please sign in to comment.