reworked verbosity and structure of installation script
This commit is contained in:
parent
60decea760
commit
c7e5cb9806
|
@ -4,21 +4,47 @@ WORKINGDIR=`dirname $0`
|
||||||
INSTALLDIR="/msc"
|
INSTALLDIR="/msc"
|
||||||
echo "Input path of MARC/MENTAT installation: [$INSTALLDIR]"
|
echo "Input path of MARC/MENTAT installation: [$INSTALLDIR]"
|
||||||
read INSTALLDIR
|
read INSTALLDIR
|
||||||
if [ $INSTALLDIR = ""] ; then
|
if [ -z $INSTALLDIR ]; then
|
||||||
INSTALLDIR="/msc"
|
INSTALLDIR="/msc"
|
||||||
fi
|
fi
|
||||||
cp $WORKINGDIR/Marc_tools/comp_user $INSTALLDIR/marc2010/tools
|
|
||||||
cp $WORKINGDIR/Marc_tools/comp_user_h $INSTALLDIR/marc2010/tools
|
# tools
|
||||||
cp $WORKINGDIR/Marc_tools/comp_user_mp $INSTALLDIR/marc2010/tools
|
echo 'copying Marc tools...'
|
||||||
cp $WORKINGDIR/Marc_tools/run_marc $INSTALLDIR/marc2010/tools
|
for filename in 'comp_user' \
|
||||||
cp $WORKINGDIR/Marc_tools/run_h_marc $INSTALLDIR/marc2010/tools
|
'comp_user_h' \
|
||||||
cp $WORKINGDIR/Marc_tools/run_mp_marc $INSTALLDIR/marc2010/tools
|
'comp_user_mp' \
|
||||||
cp $WORKINGDIR/Marc_tools/include_linux64 $INSTALLDIR/marc2010/tools
|
'run_marc' \
|
||||||
cp $WORKINGDIR/Mentat_bin/edit_window $INSTALLDIR/mentat2010/bin
|
'run_h_marc' \
|
||||||
cp $WORKINGDIR/Mentat_bin/submit1 $INSTALLDIR/mentat2010/bin
|
'run_mp_marc' \
|
||||||
cp $WORKINGDIR/Mentat_bin/submit2 $INSTALLDIR/mentat2010/bin
|
'include_linux_64'; do
|
||||||
cp $WORKINGDIR/Mentat_bin/submit3 $INSTALLDIR/mentat2010/bin
|
cp $WORKINGDIR/Marc_tools/$filename $INSTALLDIR/marc2010/tools
|
||||||
cp $WORKINGDIR/Mentat_menus/job_run.ms $INSTALLDIR/mentat2010/menus
|
echo $filename
|
||||||
|
done
|
||||||
|
|
||||||
|
# Mentat scripts
|
||||||
|
echo 'copying Mentat scripts...'
|
||||||
|
for filename in 'edit_window' \
|
||||||
|
'submit1' \
|
||||||
|
'submit2' \
|
||||||
|
'submit3'; do
|
||||||
|
cp $WORKINGDIR/Mentat_bin/$filename $INSTALLDIR/mentat2010/bin
|
||||||
|
echo $filename
|
||||||
|
done
|
||||||
|
|
||||||
|
# Mentat scripts
|
||||||
|
echo 'copying Mentat menus...'
|
||||||
|
for filename in 'job_run.ms'; do
|
||||||
|
cp $WORKINGDIR/Mentat_menus/$filename $INSTALLDIR/mentat2010/menus
|
||||||
|
echo $filename
|
||||||
|
done
|
||||||
|
|
||||||
|
# compile menus
|
||||||
|
echo 'compiling menus...'
|
||||||
$INSTALLDIR/mentat2010/bin/mentat -compile $INSTALLDIR/mentat2010/menus/linux64/main.msb
|
$INSTALLDIR/mentat2010/bin/mentat -compile $INSTALLDIR/mentat2010/menus/linux64/main.msb
|
||||||
|
|
||||||
|
# setting access rights
|
||||||
|
echo 'setting file access rights...'
|
||||||
chmod 555 $INSTALLDIR/marc2010/tools/run_*_marc
|
chmod 555 $INSTALLDIR/marc2010/tools/run_*_marc
|
||||||
chmod 555 $INSTALLDIR/marc2010/tools/comp_user?*
|
chmod 555 $INSTALLDIR/marc2010/tools/comp_user?*
|
||||||
|
|
||||||
|
echo 'done.'
|
||||||
|
|
Loading…
Reference in New Issue