aboutsummaryrefslogtreecommitdiff
path: root/version.sh
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-09-28 10:59:53 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-09-28 10:59:53 +0300
commit17d3c61edd35de8fa884944fc70d1db86daa5dd8 (patch)
tree5e4fc20b936260989159b236e1eea727ab66cbae /version.sh
parentUpdate .gitignore. (diff)
downloadxz-17d3c61edd35de8fa884944fc70d1db86daa5dd8.tar.xz
Move version.sh to build-aux.
Diffstat (limited to 'version.sh')
-rw-r--r--version.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/version.sh b/version.sh
deleted file mode 100644
index 40d04936..00000000
--- a/version.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/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'