diff --git a/mg/create_dwa.csh b/mg/create_dwa.csh new file mode 100644 index 0000000..16d4e9c --- /dev/null +++ b/mg/create_dwa.csh @@ -0,0 +1,43 @@ +#!/bin/csh + +mkdir -p $1 +cd $1 +setenv DWA `pwd` + +setenv VVCO $VCO-dbg + +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/$VCO-dbg + +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 diff --git a/mg/cshrc b/mg/cshrc index f3b32f3..b25361e 100644 --- a/mg/cshrc +++ b/mg/cshrc @@ -40,6 +40,7 @@ set cpu_count=`/user/icdet/bin/count_processors` 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' if ( -x /share/cal_nightly/latest ) then setenv IWA /share/cal_nightly/latest @@ -110,5 +111,5 @@ alias oasis_info $HOME/local_rh_x64/private/fw/bin/oasis_info # # Aliases # - - +alias cdw 'cd $HOME/devel/mg' +alias setmgchome 'source $HOME/devel/scripts/mg/setmgchome.csh' diff --git a/mg/setmgchome.csh b/mg/setmgchome.csh new file mode 100644 index 0000000..3ca60aa --- /dev/null +++ b/mg/setmgchome.csh @@ -0,0 +1,15 @@ +#!/bin/csh + +if ( $1 != '' ) then + set DIR=`readlink -f $1` +else + set DIR=`pwd` +endif + +setenv DWA $DIR +setenv VVCO $VCO-dbg + +setenv MGC_HOME $DWA/ic/ic_superproj/$VVCO/Mgc_home +setenv MGC_BIN $MGC_HOME/bin +setenv PATH $MGC_BIN\:$PATH +