From 17d3c61edd35de8fa884944fc70d1db86daa5dd8 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 28 Sep 2010 10:59:53 +0300 Subject: Move version.sh to build-aux. --- build-aux/version.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 build-aux/version.sh (limited to 'build-aux') diff --git a/build-aux/version.sh b/build-aux/version.sh new file mode 100644 index 00000000..40d04936 --- /dev/null +++ b/build-aux/version.sh @@ -0,0 +1,24 @@ +#!/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 +# +# This file has been put into the public domain. +# You can do whatever you want with this file. +# +############################################################################# + +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' '|' \ + | sed 's/|/./; s/|/./; s/|//g' \ + | tr -d '\n' -- cgit v1.2.3