Index: trunk/extensions/UsabilityInitiative/Makefile |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | # For each group of summing numbers inside the target file, use bc to calculate the sum and replace with sed. |
142 | 142 | %.hooks.php: $(WIKIEDITOR_HOOKS) |
143 | 143 | for file in $?; do basefile="$${file#$(shell echo $* | sed "s/\([^\/]*\/\).*/\\1/")}"; sed -i -e "s/\(.*'src' => '$${basefile//\//\\/}', 'version' => \)\([0-9+]*\)\(.*\)/\\1\\2+1\\3/" $@; \ |
144 | | - for i in $$(grep --only-matching -P " ([0-9]+(\+[0-9]))+ " $@); do sed -i -e "s/ $$i / $$(bc <<< $$i) /" $@; done; done |
| 144 | + for i in $$(grep --only-matching -P " ([0-9]+(\+[0-9]))+ " $@); do sed -i -e "s/ $$i / $$(($$i)) /" $@; done; done |
145 | 145 | |
146 | 146 | # Actions |
147 | 147 | |