[pkg-opensc-commit] [engine-pkcs11] 05/152: generate documentation on "make dist".
Eric Dorland
eric at moszumanska.debian.org
Mon Oct 19 03:11:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository engine-pkcs11.
commit d86f5739b04037d8964579a2720436b45654e734
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date: Thu Sep 1 14:16:12 2005 +0000
generate documentation on "make dist".
---
Makefile.am | 3 +++
bootstrap | 4 ++--
doc/Makefile.am | 2 +-
doc/export-wiki.sh | 39 ++++++++++++++++++++++++++-------------
4 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index f86a689..3bb9ad7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,3 +13,6 @@ MAINTAINERCLEANFILES = \
DEPCLEANFILES = config.log configure
AUTOMAKE_OPTIONS = foreign 1.5
+
+dist-hook:
+ sh $(srcdir)/doc/export-wiki.sh $(srcdir)/doc
diff --git a/bootstrap b/bootstrap
index 4e964bd..c27edd2 100755
--- a/bootstrap
+++ b/bootstrap
@@ -5,7 +5,7 @@ set -x
if test -f Makefile; then
make distclean
fi
-rm -rf *.cache *.m4 config.guess config.log \
-config.status config.sub depcomp ltmain.sh
+rm -rf *~ *.cache *.m4 config.guess config.log \
+ config.status config.sub depcomp ltmain.sh
(cat aclocal/*.m4 > acinclude.m4 2> /dev/null)
autoreconf --verbose --install
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 2a63710..a010888 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -4,4 +4,4 @@ MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = README export-wiki.sh export-wiki.xsl $(HTML)
-HTML=
+HTML= $(shell ls $(srcdir)/*.html $(srcdir)/*.css)
diff --git a/doc/export-wiki.sh b/doc/export-wiki.sh
index ea7f5ec..475e495 100644
--- a/doc/export-wiki.sh
+++ b/doc/export-wiki.sh
@@ -6,29 +6,42 @@ export SERVER=http://www.opensc.org
export WIKI=engine_pkcs11/wiki
export XSL=export-wiki.xsl
-test -f `basename $0`
+SRCDIR=.
-rm -rf *.html *.css
+if test -n "$1"
+then
+ SRCDIR="$1"
+fi
-wget $SERVER/$WIKI/TitleIndex -O TitleIndex.tmp
+test -f "$SRCDIR"/`basename $0`
-grep "\"/$WIKI/[^\"]*\"" TitleIndex.tmp \
+if ! test -w "$SRCDIR"
+then
+ exit 0
+fi
+
+rm -rf "$SRCDIR"/*.html "$SRCDIR"/*.css
+
+wget --non-verbose $SERVER/$WIKI/TitleIndex -O "$SRCDIR"/TitleIndex.tmp
+
+grep "\"/$WIKI/[^\"]*\"" "$SRCDIR"/TitleIndex.tmp \
|sed -e "s#.*\"/$WIKI/\([^\"]*\)\".*#\1#g" \
- > WikiWords.tmp
+ > "$SRCDIR"/WikiWords.tmp
sed -e /^Trac/d -e /^Wiki/d -e /^TitleIndex/d -e /^RecentChanges/d \
- -e /^CamelCase/d -e /^SandBox/d -i WikiWords.tmp
+ -e /^CamelCase/d -e /^SandBox/d -i "$SRCDIR"/WikiWords.tmp
-for A in WikiStart `cat WikiWords.tmp`
+for A in WikiStart `cat "$SRCDIR"/WikiWords.tmp`
do
F=`echo $A|sed -e 's/\//_/g'`
- wget $SERVER/$WIKI/$A -O $F.tmp
- xsltproc --output $F.html $XSL $F.tmp
+ wget --non-verbose $SERVER/$WIKI/$A -O "$SRCDIR"/$F.tmp
+ xsltproc --output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp
sed -e "s#<a href=\"/$WIKI/\([^\"]*\)\"#<a href=\"\1.html\"#g" \
- -i $F.html
+ -i "$SRCDIR"/$F.html
done
-mv WikiStart.html index.html
+mv "$SRCDIR"/WikiStart.html "$SRCDIR"/index.html
-wget http://www.opensc.org/trac/css/trac.css
+wget --non-verbose http://www.opensc.org/trac/css/trac.css \
+ -O "$SRCDIR"/trac.css
-rm *.tmp
+rm "$SRCDIR"/*.tmp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git
More information about the pkg-opensc-commit
mailing list