Index: alarmMapping.sh =================================================================== diff -u -r3561f79af1a92356eea01d5d0c3297c69d2ecdf2 -r86acb3c49bfc7c4ed8fc860d895c0603b4816b3a --- alarmMapping.sh (.../alarmMapping.sh) (revision 3561f79af1a92356eea01d5d0c3297c69d2ecdf2) +++ alarmMapping.sh (.../alarmMapping.sh) (revision 86acb3c49bfc7c4ed8fc860d895c0603b4816b3a) @@ -9,13 +9,13 @@ # @file alarmMapping.sh # # @author (last) Behrouz NematiPour -# @date (last) 14-Jan-2022 +# @date (last) 22-Jun-022 # @author (original) Behrouz NematiPour # @date (original) 11-May-2021 # ############################################################################ - -BRANCH="develop" +ALARM_MAPPING=../scripts/build/alarmMapping +BRANCH=$(git symbolic-ref --short HEAD) if ( test -n "$1" ); then BRANCH="$1" fi @@ -28,7 +28,7 @@ fi cd .. -if ! ( test -x ../scripts/build/alarmMapping ); then +if ! ( test -x $ALARM_MAPPING ); then echo "Alarm Mapping tool doesn't exist. Continues by assuming the Alarm Table is updated." # if return anything other than 0 build stops running next steps. # it is ok for the dev_test to not to have the script folder and @@ -38,10 +38,10 @@ # update the alarm messaging echo "update the alarm message mapping" -../scripts/build/alarmMapping \ - common/ \ - sources/model/hd/alarm/ \ - 2> alarmMapping.err \ +$ALARM_MAPPING \ + common/ \ + sources/model/hd/alarm/ \ + 2> alarmMapping.err \ | tee alarmMapping.log echo "move the Alarm code mapping to current location(./)"