Loading scripts/prepare_delivery.sh +41 −0 Original line number Diff line number Diff line Loading @@ -375,6 +375,47 @@ else fi ########################## # # # CR Switches for 1st # # delivery # # # ########################## # rename switches from CR_ to NONBE_ tmpfile=`mktemp` rm -f $tmpfile touch $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start NON-BE CR switches/,/End NON-BE CR switches/p' >> $tmpfile sed -i.bak "s/^-D//g" $tmpfile nonbe_list=nonbe_list_delivery.txt rm -f $nonbe_list touch $nonbe_list ${ROOT}/scripts/parse_options_h.sh -c $tmpfile >> $nonbe_list # rename switches while read line do macro=`echo $line | grep '\-D' | sed -e "s/\-D//g"` if [[ ! $macro =~ [^[:space:]] ]] ; then continue fi macro_new=${macro/CR_/NONBE_} find $OUTDIR -name "*.[ch]" -exec sed -i.bak -e "s/${macro}/${macro_new}/g" \{\} \; done < $nonbe_list rm -f $nonbe_list rm -f $tmpfile sed -i.bak -e "s/NON-BE CR switches/NON-BE switches/g" $OUTDIR/lib_com/options.h sed -i.bak -e "/all switches in this category should start with \"CR_\"/d" $OUTDIR/lib_com/options.h ########################## # # # Patch code # Loading Loading
scripts/prepare_delivery.sh +41 −0 Original line number Diff line number Diff line Loading @@ -375,6 +375,47 @@ else fi ########################## # # # CR Switches for 1st # # delivery # # # ########################## # rename switches from CR_ to NONBE_ tmpfile=`mktemp` rm -f $tmpfile touch $tmpfile cat $OUTDIR/lib_com/options.h | sed -n '/Start NON-BE CR switches/,/End NON-BE CR switches/p' >> $tmpfile sed -i.bak "s/^-D//g" $tmpfile nonbe_list=nonbe_list_delivery.txt rm -f $nonbe_list touch $nonbe_list ${ROOT}/scripts/parse_options_h.sh -c $tmpfile >> $nonbe_list # rename switches while read line do macro=`echo $line | grep '\-D' | sed -e "s/\-D//g"` if [[ ! $macro =~ [^[:space:]] ]] ; then continue fi macro_new=${macro/CR_/NONBE_} find $OUTDIR -name "*.[ch]" -exec sed -i.bak -e "s/${macro}/${macro_new}/g" \{\} \; done < $nonbe_list rm -f $nonbe_list rm -f $tmpfile sed -i.bak -e "s/NON-BE CR switches/NON-BE switches/g" $OUTDIR/lib_com/options.h sed -i.bak -e "/all switches in this category should start with \"CR_\"/d" $OUTDIR/lib_com/options.h ########################## # # # Patch code # Loading