Skip to content

Commit

Permalink
build-aux/version.sh: Use SUSv2 compatible sed expression.
Browse files Browse the repository at this point in the history
SUSv2 doesn't seem to allow semicolons to separate commands;
only newlines work. The old version didn't work with /bin/sed
on Solaris although it did with /usr/xpg4/bin/sed.
  • Loading branch information
Larhzu authored and thesamesam committed Apr 23, 2024
1 parent 3f2be2e commit b3a5649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-aux/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ sed -n 's/LZMA_VERSION_STABILITY_ALPHA/alpha/
s/^#define LZMA_VERSION_[MPS][AIT][AJNT][A-Z]* //p' \
src/liblzma/api/lzma/version.h \
| tr '\n' '|' \
| sed 's/|/./; s/|/./; s/|//g' \
| sed 's/|/./
s/|/./
s/|//g' \
| tr -d '\r\n'

0 comments on commit b3a5649

Please sign in to comment.