Skip to content

Commit bbbfd69

Browse files
hinermdscho
authored andcommitted
bump-pom-scijava: change property range
As the pom-scijava pom.xml now contains multiple properties ranges, it is not enough to search and replace within the properties tag. To catch only the first properties section, we now rely on a properly indented pom-scijava pom.xml, as we harden the sed range by making the single tab character part of the pattern to match the appropriate section. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 9e7c3dc commit bbbfd69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bump-pom-scijava.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ else
208208
p="$(sed_quote "$property")"
209209
v="$(sed_quote "$value")"
210210
sed \
211-
-e "/<properties>/,/<\/properties>/s/\(<$p>\)[^<]*\(<\/$p>\)/\1$v\2/" \
211+
-e "/^ <properties>/,/^ <\/properties>/s/\(<$p>\)[^<]*\(<\/$p>\)/\1$v\2/" \
212212
$pom > $pom.new &&
213213
if ! cmp $pom $pom.new
214214
then

0 commit comments

Comments
 (0)