From 0aa5753ad4fe3cf8a65c3cef40babce1a6a07888 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 5 Sep 2020 11:14:13 +0300 Subject: [PATCH] Take version from source code directly --- .gitignore | 1 + VERSION.do | 2 ++ install.texi | 2 -- maketxts.sh | 13 ++++++++++--- www.do | 5 +++-- 5 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 VERSION.do diff --git a/.gitignore b/.gitignore index 1521c8b..138ee56 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ dist +VERSION diff --git a/VERSION.do b/VERSION.do new file mode 100644 index 0000000..61428e2 --- /dev/null +++ b/VERSION.do @@ -0,0 +1,2 @@ +redo-ifchange pygost/__init__.py +perl -ne 'print "$1\n" if /__version__.*"(.*)"$/' < pygost/__init__.py diff --git a/install.texi b/install.texi index 1424837..4404f5f 100644 --- a/install.texi +++ b/install.texi @@ -1,8 +1,6 @@ @node Download @unnumbered Download -@set VERSION 5.0 - No additional dependencies except Python 2.7/3.x interpreter are required. Preferable way is to download tarball with the signature: diff --git a/maketxts.sh b/maketxts.sh index 1d53d8c..d220097 100755 --- a/maketxts.sh +++ b/maketxts.sh @@ -1,5 +1,12 @@ #!/bin/sh -ex +mkinfo() { + ${MAKEINFO:-makeinfo} --plaintext \ + --set-customization-variable CLOSE_QUOTE_SYMBOL=\" \ + --set-customization-variable OPEN_QUOTE_SYMBOL=\" \ + -D "VERSION `cat VERSION`" $@ +} + texi=$(mktemp) cat > $texi < $texi < download.texi < $texi < $texi < $texi <