2009-02-13 16:00:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
#############################################################################
|
|
|
|
#
|
|
|
|
# Get the version string from version.h and print it out without
|
|
|
|
# trailing newline. This makes it suitable for use in configure.ac.
|
|
|
|
#
|
|
|
|
#############################################################################
|
|
|
|
#
|
|
|
|
# Author: Lasse Collin
|
|
|
|
#
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
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 \
|
|
|
|
| tr '\n' '|' \
|
2009-07-08 20:05:29 +00:00
|
|
|
| sed 's/|/./; s/|/./; s/|//g' \
|
2015-02-26 18:46:14 +00:00
|
|
|
| tr -d '\r\n'
|