--- /dev/null
+redo-ifchange pygost/__init__.py
+perl -ne 'print "$1\n" if /__version__.*"(.*)"$/' < pygost/__init__.py
@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:
#!/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 <<EOF
`sed -n '3,$p' < news.texi`
@bye
EOF
-makeinfo --plaintext -o NEWS $texi
+mkinfo --output NEWS $texi
cat > download.texi <<EOF
You can obtain releases source code prepared tarballs on
@include install.texi
@bye
EOF
-makeinfo --plaintext -o INSTALL $texi
+mkinfo --output INSTALL $texi
cat > $texi <<EOF
\input texinfo
@include faq.texi
@bye
EOF
-makeinfo --plaintext -o FAQ $texi
+mkinfo --output FAQ $texi
rm -f $texi
+redo-ifchange *.texi VERSION
rm -f pygost.html/*.html
-makeinfo --html \
+${MAKEINFO:-makeinfo} --html \
+ -D "VERSION `cat VERSION`"
--set-customization-variable EXTRA_HEAD='<link rev="made" href="mailto:webmaster@cypherpunks.ru">' \
--set-customization-variable CSS_LINES="`cat style.css`" \
--set-customization-variable SHOW_TITLE=0 \
- --set-customization-variable USE_ACCESSKEY=0 \
--set-customization-variable DATE_IN_HEADER=1 \
--set-customization-variable TOP_NODE_UP_URL=index.html \
--set-customization-variable CLOSE_QUOTE_SYMBOL=\" \