Skip to content

Commit

Permalink
CI: Solaris debug 2
Browse files Browse the repository at this point in the history
tr doesn't support '\n' but it's fine on Solaris with these changes.
Now also sed won't get input that lacks a newline at the end.
  • Loading branch information
Larhzu committed Jun 3, 2024
1 parent 6a53d99 commit 7b183d3
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,26 @@ sed -n 's/LZMA_VERSION_STABILITY_ALPHA/alpha/
PATH="/usr/xpg4/bin:$PATH" /bin/sh build-aux/version.sh
echo

ls -l /usr/xpg4/bin
echo
sed -n 's/LZMA_VERSION_STABILITY_ALPHA/alpha/
s/LZMA_VERSION_STABILITY_BETA/beta/
s/LZMA_VERSION_STABILITY_STABLE//
s/^#define LZMA_VERSION_[MPS][AIT][AJNT][A-Z]* //p' \
src/liblzma/api/lzma/version.h \
| sed 'N;N;N;s/\n/./g;s/\.$//'
echo

echo
sed -n 's/LZMA_VERSION_STABILITY_ALPHA/alpha/
s/LZMA_VERSION_STABILITY_BETA/beta/
s/LZMA_VERSION_STABILITY_STABLE//
s/^#define LZMA_VERSION_[MPS][AIT][AJNT][A-Z]* //p' \
src/liblzma/api/lzma/version.h \
| sed 'N;N;N;s/\n/./g;s/\.$//' \
| tr -d '\r\n'
echo

# ls -l /usr/xpg4/bin

echo
echo === DEBUG ENDS
Expand Down

0 comments on commit 7b183d3

Please sign in to comment.