#!/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" && $2 != "aoh" ) 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 cd $DWA/ic/lv/$VVCO cglu cm_add_verfiles 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. # 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