From 1c933bd39abaa8b2c11b43420497bba4524567b9 Mon Sep 17 00:00:00 2001 From: Franz Roters Date: Fri, 2 Aug 2013 13:55:06 +0000 Subject: [PATCH] added possibility to create damsk symlinks in /usr/local/bin, that's where also marc mentat links are placed by default --- .../apply_DAMASK_modifications | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/installation/mods_MarcMentat/apply_DAMASK_modifications b/installation/mods_MarcMentat/apply_DAMASK_modifications index 6085ffa56..80f2dc549 100755 --- a/installation/mods_MarcMentat/apply_DAMASK_modifications +++ b/installation/mods_MarcMentat/apply_DAMASK_modifications @@ -79,10 +79,10 @@ do echo "Input command to invoke your preferred editor: [${DEFAULT_EDITOR}]" read EDITOR if [ -z "$EDITOR" ]; then - VERSION=${DEFAULT_EDITOR} + EDITOR=${DEFAULT_EDITOR} fi done -echo "MSC version: $VERSION" +echo "Editor: $EDITOR" # tools echo '' @@ -156,5 +156,31 @@ chmod 555 $INSTALLDIR/marc$VERSION/tools/comp_damask* chmod 555 $INSTALLDIR/mentat$VERSION/bin/submit{4..9} chmod 555 $INSTALLDIR/mentat$VERSION/bin/kill{4..9} +#creating symlinks for run_damask_scripts in /usr/local/bin +BIN_DIR=/usr/local/bin +echo '' +echo "Do you want to create symlinks for run_damask scripts in ${BIN_DIR} [YES/no] ?" +read YESNO + if [ -z "$YESNO" ]; then + YESNO=yes + fi +case $YESNO in + y* | Y* ) + echo'' + echo 'creating symlinks ...' + echo'' + theDIR=$INSTALLDIR/marc$VERSION/tools + for filename in 'run_damask' \ + 'run_damask_l' \ + 'run_damask_h' \ + 'run_damask_mp' \ + 'run_damask_lmp' \ + 'run_damask_hmp'; do + echo ${filename:4}$VERSION + ln -s $theDIR/$filename $BIN_DIR/${filename:4}$VERSION + done + ;; +esac + echo '' echo 'done.'