MG: create_iwa.csh + fix in create_dwa.csh

This commit is contained in:
Vahagn Khachatryan
2014-09-17 01:11:45 -07:00
parent cfd47defb6
commit ca1eb2d697
4 changed files with 61 additions and 3 deletions

View File

@@ -1,10 +1,19 @@
#!/bin/csh
if ( $1 == '' ) then
echo 'DWA folder is not specified.'
exit
endif
mkdir -p $1
cd $1
setenv DWA `pwd`
setenv VVCO $VCO-dbg
if ( $2 != '' ) then
set VVCO=$VCO-$2
else
set VVCO=$VCO
endif
ic_dwa -lv $IWA $DWA $VVCO
@@ -20,7 +29,7 @@ cm_add_verfiles
#cd $DWA/ic/lv/$VCO-dbg/lithas/Dsrc
#cvs update build.pl
cd $DWA/ic/lv/$VCO-dbg
cd $DWA/ic/lv/$VVCO
setenv CAL_DWA $DWA
setenv CAL_IWA $IWA

48
mg/create_iwa.csh Normal file
View File

@@ -0,0 +1,48 @@
#!/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

View File

@@ -41,6 +41,7 @@ setenv PB "GMAKE_LIB_PARALLEL=-j$cpu_count GMAKE_SYSTESTS_PARALLEL=-j$cpu_count"
setenv PB2 "GMAKE_EXEC_PARALLEL=-j"`/user/icdet/bin/figure_gmake_exec_ness`
alias pmake 'gmake $PB $PB2'
alias create_dwa 'source $HOME/devel/scripts/mg/create_dwa.csh'
alias create_iwa 'source $HOME/devel/scripts/mg/create_iwa.csh'
if ( -x /share/cal_nightly/latest ) then
setenv IWA /share/cal_nightly/latest

View File

@@ -7,7 +7,7 @@ else
endif
setenv DWA $DIR
setenv VVCO $VCO-dbg
setenv VVCO $VCO
setenv MGC_HOME $DWA/ic/ic_superproj/$VVCO/Mgc_home
setenv MGC_BIN $MGC_HOME/bin