49 lines
736 B
Tcsh
49 lines
736 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.
|
|
#
|
|
echo cvs checkout -r calibre_2014_3 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
|
|
|