diff --git a/mg/create_dwa.csh b/mg/create_dwa.csh index 38de63f..f02fe3a 100644 --- a/mg/create_dwa.csh +++ b/mg/create_dwa.csh @@ -1,30 +1,38 @@ #!/bin/csh -if ( $1 == '' ) then +if ( $1 == "" ) then echo 'DWA folder is not specified.' exit endif -if ( $2 == '' ) then +if ( $2 == "" ) then echo 'VCO is not specified.' exit endif -if ( $2 != 'aoi' && $2 != 'aoi-dbg' ) then +if ( $2 != "aoi" && $2 != "aoi-dbg" ) then echo 'VCO is unknown.' exit endif set VVCO=$2 +if ( $3 != "" ) then + set PRJ=$3 +else + set PRJ="" +endif + +###################### +# Create DWA +###################### 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 @@ -33,15 +41,35 @@ 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 +###################### +# Syn project files. +###################### +if ( $PRJ == "wrap" || $PRJ == "fill" ) then + cd Dsrc/iclv + foreach i (`ls Isrc/dfm_fill*`) + cvs update `basename $i` + touch `basename $i` + end + cd - +endif + +###################### +# Run ctags. +###################### +cd Dsrc +ptags +cd - + +###################### +# Build project. +###################### pmake lcl_exec ic_create_deps +pmake systests lv_verify # # Set path after build. Otherwise tcsh doesn't find binaries. @@ -50,10 +78,7 @@ 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-dbg/lithas/Dsrc +#cvs update build.pl #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