Files
scripts/mg/create_dwa.csh
2014-12-03 11:27:57 +04:00

60 lines
931 B
Tcsh

#!/bin/csh
if ( $1 == '' ) then
echo 'DWA folder is not specified.'
exit
endif
if ( $2 == '' ) then
echo 'VCO is not specified.'
exit
endif
if ( $2 != 'aoi' && $2 != 'aoi-dbg' ) then
echo 'VCO is unknown.'
exit
endif
set VVCO=$2
mkdir -p $1
cd $1
setenv DWA `pwd`
ic_dwa -lv $IWA $DWA $VVCO
######################
cd $DWA/ic/ic_superproj/$VVCO
cglu
pmake mk_imports imports
cd $DWA/ic/lv/$VVCO
cglu
cm_add_verfiles
#cd $DWA/ic/lv/$VCO-dbg/lithas/Dsrc
#cvs update build.pl
cd $DWA/ic/lv/$VVCO
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 $DWA/ic/ic_superproj/$VVCO/Mgc_home
setenv MGC_BIN $MGC_HOME/bin
setenv PATH $MGC_BIN\:$PATH
#cd
#$DWA/ic/lv/$VCO/lithas/Isrc/build.pl debug calibre -j 8
#cd $WA/ic/lv/$VCO
#cglu
#gmake $PB systests lv_verify -j8
#gmake $PB systests lv_verify