aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am23
1 files changed, 22 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 73f714c85..17539fcd4 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -75,7 +75,7 @@ man_MANS = $(myman_pages) gnupg.7
watchgnupg_SOURCE = gnupg.texi
-CLEANFILES = yat2m
+CLEANFILES = yat2m faq.txt faq.html
DISTCLEANFILES = gnupg.tmp gnupg.ops yat2m-stamp.tmp yat2m-stamp \
$(myman_pages) gnupg.7
@@ -140,3 +140,24 @@ online: gnupg.html gnupg.pdf
rsync -vr --exclude='.svn' . \
$${user}@cvs.gnupg.org:webspace/manuals/gnupg$${dashdevel}/
+# Note that you need a recent version of emacs23 with org-mode 7.01h
+faq.txt faq.html: faq.org
+ @set -e; expopt="t nil nil nil \"$$(pwd)\""; \
+ emacs --batch \
+ --eval "(require 'org)" \
+ --visit "$(srcdir)/faq.org" \
+ --eval "(setq org-export-ascii-entities 'utf8)" \
+ --eval "(org-export-as-ascii org-export-headline-levels $${expopt})"\
+ --visit "$(srcdir)/faq.org" \
+ --eval "(setq org-export-html-style-include-default nil)" \
+ --eval "(setq org-export-html-style-include-scripts nil)" \
+ --eval "(org-export-as-html org-export-headline-levels $${expopt})"
+
+faq-online: faq.txt faq.html
+ set -e; \
+ user=werner ; \
+ echo "Uploading current FAQ to {www,ftp}.gnupg.org ..."; \
+ scp faq.html $${user}@ftp.gnupg.org:webspace/manuals/GnuPG-FAQ.html ; \
+ scp faq.txt $${user}@ftp.gnupg.org:gcrypt/gnupg/GnuPG-FAQ.txt ; \
+ echo "...ready"
+