DAMASK_EICMD/installation/Marc_Mentat2010_mods/apply_MPIE_modifications

25 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
WORKINGDIR=`dirname $0`
INSTALLDIR="/msc"
echo "Input path of MARC/MENTAT installation: [$INSTALLDIR]"
read INSTALLDIR
if [ $INSTALLDIR = ""] ; then
INSTALLDIR="/msc"
fi
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?*