diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-03-31 11:56:47 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-03-31 11:56:47 +0200 |
commit | 312d93bcc322fa5aca38f38cd266569aaf18b621 (patch) | |
tree | 670c31f02d166e5fd1fc33162bd401c1284b924a /kernlab.sh | |
parent | be4c94b29fc76904b279056b6a0af234e7cf1f4e (diff) |
all
Diffstat (limited to 'kernlab.sh')
-rwxr-xr-x | kernlab.sh | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -25,12 +25,9 @@ fi # Pkg source ./config.sh source ./utils.sh -LOG="/tmp`basename $0`-log.txt" +LOG="/tmp/`basename $0`-log.txt" -echo "This installs Kernlab." -echo "Log file is '$LOG'." -echo "Press <Return> to continue, or <Ctrl+C> to abort." -read +echo "Kernlab ('$LOG')." DIR="`pwd`" @@ -41,7 +38,7 @@ if [ ! -d "$KL_DEST" ]; then exit 1 else if ! rmdir "$KL_DEST" >/dev/null 2>&1; then # if not empty this will fail - echo "Install directory '$KL_DEST' is not empty. Skipping kernlab installation..." + echo "Install directory '$KL_DEST' not empty. Skipping kernlab installation." R_DONE=true else mkdir "$KL_DEST" >/dev/null 2>&1 @@ -49,10 +46,13 @@ else fi +echo +echo "Installing:" + if ! $R_DONE; then cd /tmp URI="http://cran.r-project.org/src/contrib/Archive/kernlab/kernlab_$KL_VER.tar.gz" - if ! $WGET -O - "$URI">>$LOG 2>&1; then + if ! $WGET "$URI" >>$LOG 2>&1; then printf "%25s%15s\n" "'Download'" "FAIL" exit 1 fi @@ -68,7 +68,7 @@ fi echo -echo "Preparing R..." +echo "Preparing:" if [ ! -f $KL_CONF ]; then @@ -82,9 +82,6 @@ if [ ! -f $KL_CONF ]; then else echo "It seems R is already configured ('$KL_CONF' exists)." fi -source "$KL_CONF" cd "$DIR" -echo -echo "Kernlab Installation finished." |