liblzma-dev: Clarify NEWS.Debian
[xz/debian.git] / version.sh
blob40d04936288d1748faedf1f52058df609215b528
1 #!/bin/sh
3 #############################################################################
5 # Get the version string from version.h and print it out without
6 # trailing newline. This makes it suitable for use in configure.ac.
8 #############################################################################
10 # Author: Lasse Collin
12 # This file has been put into the public domain.
13 # You can do whatever you want with this file.
15 #############################################################################
17 sed -n 's/LZMA_VERSION_STABILITY_ALPHA/alpha/
18 s/LZMA_VERSION_STABILITY_BETA/beta/
19 s/LZMA_VERSION_STABILITY_STABLE//
20 s/^#define LZMA_VERSION_[MPS][AIT][AJNT][A-Z]* //p' \
21 src/liblzma/api/lzma/version.h \
22 | tr '\n' '|' \
23 | sed 's/|/./; s/|/./; s/|//g' \
24 | tr -d '\n'