Index: alarmMapping.sh =================================================================== diff -u -r27cc308ff5113a9386899d3c8f8b29962a8498e1 -r3561f79af1a92356eea01d5d0c3297c69d2ecdf2 --- alarmMapping.sh (.../alarmMapping.sh) (revision 27cc308ff5113a9386899d3c8f8b29962a8498e1) +++ alarmMapping.sh (.../alarmMapping.sh) (revision 3561f79af1a92356eea01d5d0c3297c69d2ecdf2) @@ -14,10 +14,16 @@ # @date (original) 11-May-2021 # ############################################################################ + +BRANCH="develop" +if ( test -n "$1" ); then + BRANCH="$1" +fi + echo "update the common repo" cd common if ( test -d .git ); then - git checkout staging + git checkout $BRANCH git pull fi cd .. @@ -33,8 +39,8 @@ # update the alarm messaging echo "update the alarm message mapping" ../scripts/build/alarmMapping \ - common/AlarmDefs.h \ - sources/model/hd/alarm/MAlarmMapping.cpp \ + common/ \ + sources/model/hd/alarm/ \ 2> alarmMapping.err \ | tee alarmMapping.log