1
0
mirror of https://github.com/google/nomulus synced 2026-01-03 11:45:39 +00:00

Make Numulus compile on macOS (#1070)

* Make Numulus compile on macOS

BSD sed behaves differently than Linux sed. By adding a "-e" flag the
comand works in both systems.

See: https://unix.stackexchange.com/questions/101059/sed-behaves-different-on-freebsd-and-on-linux

* Make the regex easier to understand
This commit is contained in:
Lai Jiang
2021-04-12 10:12:26 -04:00
committed by GitHub
parent 0156a29f93
commit 020273b184

View File

@@ -423,7 +423,7 @@ task jaxbToJava {
}
}
execInBash(
'find . -name *.java -exec sed -i /\\*\\ \\<p\\>\\$/d {} +',
"find . -name *.java -exec sed -i -e '/" + /\* <p>$/ + "/d' {} +",
generatedDir)
}
}