Files
scripts/mg/create_iwa.csh
Vahagn Khachatryan 17ae95e589 MG: scripts updated.
2015-03-03 11:59:54 +04:00

49 lines
713 B
Tcsh

#!/bin/csh
if ( $1 == '' ) then
echo 'IWA folder is not specified.'
exit
endif
mkdir -p $1
cd $1
setenv IWA `pwd`
if ( $2 != '' ) then
set VVCO=$VCO-$2
else
set VVCO=$VCO
endif
#
# Check out sources.
#
cvs checkout ic/lv/src ic/ic_superproj/src
######################
cd $IWA/ic/lv
mkwa . . $VVCO
cd $IWA/ic/ic_superproj
mkwa . . $VVCO
cd $IWA/ic/ic_superproj/$VVCO
cglu
gmake mk_imports imports
cd $IWA/ic/lv/$VVCO
cglu
cm_add_verfiles
setenv CAL_DWA $DWA
setenv CAL_IWA $IWA
#pmake lcl_exec ic_create_deps
#
# Set path after build. Otherwise tcsh doesn't find binaries.
#
setenv MGC_HOME $IWA/ic/ic_superproj/$VVCO/Mgc_home
setenv MGC_BIN $MGC_HOME/bin
setenv PATH $MGC_BIN\:$PATH