added variable working dir (if apply_script is called from somewhere else) and made the script executable

why using "comp_user?*" instead of "comp_user*" ?? (@Franz...)
This commit is contained in:
Philip Eisenlohr 2010-05-06 14:17:53 +00:00
parent e4067f2d26
commit 5a0963fb81
1 changed files with 15 additions and 13 deletions

View File

@ -1,22 +1,24 @@
#!/bin/bash
WORKINGDIR=`dirname $0`
INSTALLDIR="/msc"
echo "Input path of MARC/MENTAT installation: [$INSTALLDIR]"
read INSTALLDIR
if [ $INSTALLDIR = ""] ; then
INSTALLDIR="/msc"
fi
cp ./Marc_tools/comp_user $INSTALLDIR/marc2010/tools
cp ./Marc_tools/comp_user_h $INSTALLDIR/marc2010/tools
cp ./Marc_tools/comp_user_mp $INSTALLDIR/marc2010/tools
cp ./Marc_tools/run_marc $INSTALLDIR/marc2010/tools
cp ./Marc_tools/run_h_marc $INSTALLDIR/marc2010/tools
cp ./Marc_tools/run_mp_marc $INSTALLDIR/marc2010/tools
cp ./Marc_tools/include_linux64 $INSTALLDIR/marc2010/tools
cp ./Mentat_bin/edit_window $INSTALLDIR/mentat2010/bin
cp ./Mentat_bin/submit1 $INSTALLDIR/mentat2010/bin
cp ./Mentat_bin/submit2 $INSTALLDIR/mentat2010/bin
cp ./Mentat_bin/submit3 $INSTALLDIR/mentat2010/bin
cp ./Mentat_menus/job_run.ms $INSTALLDIR/mentat2010/menus
cp $WORKINGDIR/Marc_tools/comp_user $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Marc_tools/comp_user_h $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Marc_tools/comp_user_mp $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Marc_tools/run_marc $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Marc_tools/run_h_marc $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Marc_tools/run_mp_marc $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Marc_tools/include_linux64 $INSTALLDIR/marc2010/tools
cp $WORKINGDIR/Mentat_bin/edit_window $INSTALLDIR/mentat2010/bin
cp $WORKINGDIR/Mentat_bin/submit1 $INSTALLDIR/mentat2010/bin
cp $WORKINGDIR/Mentat_bin/submit2 $INSTALLDIR/mentat2010/bin
cp $WORKINGDIR/Mentat_bin/submit3 $INSTALLDIR/mentat2010/bin
cp $WORKINGDIR/Mentat_menus/job_run.ms $INSTALLDIR/mentat2010/menus
$INSTALLDIR/mentat2010/bin/mentat -compile $INSTALLDIR/mentat2010/menus/linux64/main.msb
chmod 555 $INSTALLDIR/marc2010/tools/run_*_marc
chmod 555 $INSTALLDIR/marc2010/tools/comp_user?*
chmod 555 $INSTALLDIR/marc2010/tools/comp_user?*