Permalink
Browse files

minor enhacements

  • Loading branch information...
1 parent 7a8df1c commit b428914da72976b828ce902b504bacd6ddece4ce @wendlers committed Nov 8, 2012
Showing with 19 additions and 3 deletions.
  1. +3 −1 README.md
  2. +16 −2 install-propeller-toolchain.sh
View
4 README.md
@@ -60,10 +60,12 @@ For various user setting see "config.inc".
To build and install the whole tool-chain:
- ./install-propeller-toolchain.sh
+ ./install-propeller-toolchain.sh install
NOTE: the script may ask you for your root password to make the install dir with "sudo".
+NOTE: the script removes everything installed previously under "/opt/parallax/bin".
+
After the script installed everything, you might want to add "/opt/parallax/bin" to your path.
To clean up all temporary stuff:
View
18 install-propeller-toolchain.sh
@@ -292,7 +292,7 @@ instgcc() {
stampdone instgcc.hg
fi
- if [ "X$USE_LOADER_HACK" = "X1" ];
+ if [ "X$USE_LOADER_HACK" = "X1" ] && ! [ "X$MACHINE" = "Xintel" ];
then
echo "NOTE: propeller-loader hack enabled."
@@ -385,7 +385,21 @@ clean() {
if [ "X$1" = "Xclean" ];
then
clean
- exit 1
+ exit 0
+fi
+
+if ! [ "X$1" = "Xinstall" ];
+then
+ die "No valid action given. Use one of: clean, install"
+fi
+
+echo "WARNING: This will remove and reinstall the toolchain located under $INST_DIR!"
+echo -n "Continue? [y/n]: "
+read sure
+
+if ! [ "X$sure" = "Xy" ];
+then
+ die "Aborted by user"
fi
banner_bold "Installing BST tools and propgcc"

0 comments on commit b428914

Please sign in to comment.