Skip to content
Browse files

install parrot to home so I don't need sudo. fix a few problems

  • Loading branch information...
1 parent c757ca7 commit a73e37e53e51ec98cda5e7e9d1414da0f8473cd5 @Whiteknight committed Apr 27, 2011
Showing with 9 additions and 11 deletions.
  1. +9 −11 addons/parrot.sh
View
20 addons/parrot.sh
@@ -8,9 +8,13 @@
alias pcn="parrot-nqp Configure.nqp"
alias pcs="parrot setup.pir build"
+WKPARROTINSTALL=${WKPARROTINSTALL:-'/home/andrew/parrot'}
+
# Setup some arguments that are always used to configure Parrot
# --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
PARROTSVN="https://svn.parrot.org/parrot"
@@ -67,8 +71,8 @@ function pc {
WKCOMMANDLINE="--cc=suncc --link=suncc --ld=suncc"
;;
*)
- pc $WKCC $*
- return;
+ pc $WKCC $*
+ return;
esac
# If we have flex and bison, set that up. No sense in not using them
@@ -77,7 +81,7 @@ function pc {
if [ -e "Configure.pl" ]; then
echo "Configuring with: '$WKPARROTMAINTAINER $WKCOMMANDLINE $WKPARROTSTDARGS $*'"
- perl Configure.pl $WKPARROTMAINTAINER $WKCOMMANDLINE $WKSTDARGS $*
+ perl Configure.pl $WKPARROTMAINTAINER $WKCOMMANDLINE $WKPARROTSTDARGS $*
else
echo "Configure.pl not found."
fi
@@ -90,13 +94,7 @@ alias pt="make TEST_JOBS=5"
# Uninstall an installed Parrot. Nuke.
function parrot-uninstall {
- sudo rm -rfv /usr/local/bin/parrot*
- 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*
+ rm -rfv $WKPARROTINSTALL/*
}
# An end-to-end test of Parrot with a given compiler

0 comments on commit a73e37e

Please sign in to comment.
Something went wrong with that request. Please try again.