Skip to content

Commit

Permalink
install parrot to home so I don't need sudo. fix a few problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Apr 28, 2011
1 parent c757ca7 commit a73e37e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions addons/parrot.sh
Expand Up @@ -8,9 +8,13 @@
alias pcn="parrot-nqp Configure.nqp" alias pcn="parrot-nqp Configure.nqp"
alias pcs="parrot setup.pir build" alias pcs="parrot setup.pir build"


WKPARROTINSTALL=${WKPARROTINSTALL:-'/home/andrew/parrot'}

# Setup some arguments that are always used to configure Parrot # Setup some arguments that are always used to configure Parrot
# --no-line-directives seems to cause some problems now # --no-line-directives seems to cause some problems now
WKPARROTSTDARGS="" WKPARROTSTDARGS="--no-line-directives --prefix=$WKPARROTINSTALL"

PATH=$PATH:$WKPARROTINSTALL/bin


# 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 @@ -67,8 +71,8 @@ function pc {
WKCOMMANDLINE="--cc=suncc --link=suncc --ld=suncc" WKCOMMANDLINE="--cc=suncc --link=suncc --ld=suncc"
;; ;;
*) *)
pc $WKCC $* pc $WKCC $*
return; return;
esac esac


# If we have flex and bison, set that up. No sense in not using them # If we have flex and bison, set that up. No sense in not using them
Expand All @@ -77,7 +81,7 @@ function pc {


if [ -e "Configure.pl" ]; then if [ -e "Configure.pl" ]; then
echo "Configuring with: '$WKPARROTMAINTAINER $WKCOMMANDLINE $WKPARROTSTDARGS $*'" echo "Configuring with: '$WKPARROTMAINTAINER $WKCOMMANDLINE $WKPARROTSTDARGS $*'"
perl Configure.pl $WKPARROTMAINTAINER $WKCOMMANDLINE $WKSTDARGS $* perl Configure.pl $WKPARROTMAINTAINER $WKCOMMANDLINE $WKPARROTSTDARGS $*
else else
echo "Configure.pl not found." echo "Configure.pl not found."
fi fi
Expand All @@ -90,13 +94,7 @@ alias pt="make TEST_JOBS=5"


# Uninstall an installed Parrot. Nuke. # Uninstall an installed Parrot. Nuke.
function parrot-uninstall { function parrot-uninstall {
sudo rm -rfv /usr/local/bin/parrot* rm -rfv $WKPARROTINSTALL/*
sudo rm -rfv /usr/local/bin/pbc*
sudo rm -rfv /usr/local/lib/parrot*
sudo rm -rfv /usr/local/lib/libparrot*
sudo rm -rfv /usr/local/src/parrot*
sudo rm -rfv /usr/local/include/parrot*
sudo rm -rfv /usr/local/include/pmc*
} }


# An end-to-end test of Parrot with a given compiler # An end-to-end test of Parrot with a given compiler
Expand Down

0 comments on commit a73e37e

Please sign in to comment.