Loading scripts/prepare_delivery.sh +18 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,9 @@ if coan_exists; then # apply coan coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_{com,dec,enc,util,rend,isar}/*.[hc] coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/apps/*.[hc] if [ $BASOP -eq 1 ]; then coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_basop/*.[hc] fi # remove rejected switches from options.h while read line Loading Loading @@ -254,18 +257,31 @@ if coan_exists; then echo "-USPLIT_POSE_CORRECTION_DEBUG" >> $COAN_LIST echo "-USPLIT_MD_CODING_DEBUG" >> $COAN_LIST echo "-UFLP_EXCEPTION_TRAP" >> $COAN_LIST echo "-UDEBUG_APA_SILENCE_NON_SCALED" >> $COAN_LIST echo "-UDEBUG_MCT" >> $COAN_LIST echo "-UDEBUG_SPAR_DIRAC_WRITE_OUT_PRED_PARS">> $COAN_LIST echo "-UDEBUG_FORCE_DIR" >> $COAN_LIST echo "-UDEBUG_MODE_DFT_BITS" >> $COAN_LIST echo "-USUPPORT_FORCE_TCX10_TCX20" >> $COAN_LIST echo "-UBITSTERAM_ANALYSIS" >> $COAN_LIST # Remove current development switches from the code by parsing options.h tmpfile=`mktemp` rm -f $tmpfile touch $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start BE switches/,/End DEVELOPMENT switches/p' >> $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start FIXES switches/,/End FIXES switches/p' >> $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start BASOP porting switches/,/End BASOP porting switches/p' >> $tmpfile ${ROOT}/scripts/parse_options_h.sh -c $tmpfile >> $COAN_LIST rm -f $tmpfile # apply coan coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_{com,dec,enc,util,rend,isar}/*.[hc] coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/apps/*.[hc] if [ $BASOP -eq 1 ]; then coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_basop/*.[hc] fi # remove rejected switches from options.h while read line Loading Loading @@ -326,6 +342,8 @@ sed -i.bak "/keep as part of options.h/d" $OUTDIR/lib_com/options.h sed -i.bak "s/\(\/\*\ #define\ *\CR[a-zA-Z0-9_]*\ *\*\/\)\(.*\)/\1/g" $OUTDIR/lib_com/options.h sed -i.bak "s/\(\#define\ *\CR[a-zA-Z0-9_]*\ *\)\(\/\*.*\)/\1/g" $OUTDIR/lib_com/options.h sed -i.bak "/Start DEVELOPMENT switches/,/End DEVELOPMENT switches/d" $OUTDIR/lib_com/options.h sed -i.bak "/Start FIXES switches/,/End FIXES switches/d" $OUTDIR/lib_com/options.h sed -i.bak "/Start BASOP porting switches/,/End BASOP porting switches/d" $OUTDIR/lib_com/options.h # clean-up *.bak-files find $OUTDIR -name "*.bak" -exec rm \{\} \; Loading Loading
scripts/prepare_delivery.sh +18 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,9 @@ if coan_exists; then # apply coan coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_{com,dec,enc,util,rend,isar}/*.[hc] coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/apps/*.[hc] if [ $BASOP -eq 1 ]; then coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_basop/*.[hc] fi # remove rejected switches from options.h while read line Loading Loading @@ -254,18 +257,31 @@ if coan_exists; then echo "-USPLIT_POSE_CORRECTION_DEBUG" >> $COAN_LIST echo "-USPLIT_MD_CODING_DEBUG" >> $COAN_LIST echo "-UFLP_EXCEPTION_TRAP" >> $COAN_LIST echo "-UDEBUG_APA_SILENCE_NON_SCALED" >> $COAN_LIST echo "-UDEBUG_MCT" >> $COAN_LIST echo "-UDEBUG_SPAR_DIRAC_WRITE_OUT_PRED_PARS">> $COAN_LIST echo "-UDEBUG_FORCE_DIR" >> $COAN_LIST echo "-UDEBUG_MODE_DFT_BITS" >> $COAN_LIST echo "-USUPPORT_FORCE_TCX10_TCX20" >> $COAN_LIST echo "-UBITSTERAM_ANALYSIS" >> $COAN_LIST # Remove current development switches from the code by parsing options.h tmpfile=`mktemp` rm -f $tmpfile touch $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start BE switches/,/End DEVELOPMENT switches/p' >> $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start FIXES switches/,/End FIXES switches/p' >> $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start BASOP porting switches/,/End BASOP porting switches/p' >> $tmpfile ${ROOT}/scripts/parse_options_h.sh -c $tmpfile >> $COAN_LIST rm -f $tmpfile # apply coan coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_{com,dec,enc,util,rend,isar}/*.[hc] coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/apps/*.[hc] if [ $BASOP -eq 1 ]; then coan source --replace --no-transients -K --file $COAN_LIST $OUTDIR/lib_basop/*.[hc] fi # remove rejected switches from options.h while read line Loading Loading @@ -326,6 +342,8 @@ sed -i.bak "/keep as part of options.h/d" $OUTDIR/lib_com/options.h sed -i.bak "s/\(\/\*\ #define\ *\CR[a-zA-Z0-9_]*\ *\*\/\)\(.*\)/\1/g" $OUTDIR/lib_com/options.h sed -i.bak "s/\(\#define\ *\CR[a-zA-Z0-9_]*\ *\)\(\/\*.*\)/\1/g" $OUTDIR/lib_com/options.h sed -i.bak "/Start DEVELOPMENT switches/,/End DEVELOPMENT switches/d" $OUTDIR/lib_com/options.h sed -i.bak "/Start FIXES switches/,/End FIXES switches/d" $OUTDIR/lib_com/options.h sed -i.bak "/Start BASOP porting switches/,/End BASOP porting switches/d" $OUTDIR/lib_com/options.h # clean-up *.bak-files find $OUTDIR -name "*.bak" -exec rm \{\} \; Loading