From: Sergey Matveev Date: Sat, 5 Sep 2020 08:14:13 +0000 (+0300) Subject: Take version from source code directly X-Git-Tag: 5.1~5 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=0aa5753ad4fe3cf8a65c3cef40babce1a6a07888 Take version from source code directly --- 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 <