bocchino 3a74c310db Revise RateGroupDriver XML
Put AC constants variable back in for now
2021-06-15 16:45:23 -07:00

14 lines
364 B
Plaintext

#!/bin/sh
. ./defs.sh
xml_do "$@"
# Put the AcConstants variable back in for now
awk '
/<port name="CycleOut"/ {
sub("max_number=\"[^\"]*\"", "max_number=\"$RateGroupDriverRateGroupPorts\"", $0)
}
{ print }
' < $3/RateGroupDriverComponentAi.xml > $3/RateGroupDriverComponentAi.tmp.xml
mv $3/RateGroupDriverComponentAi.tmp.xml $3/RateGroupDriverComponentAi.xml