[pkg-opensc-commit] [engine-pkcs11] 49/152: document latest changes. update wiki export script.

Eric Dorland eric at moszumanska.debian.org
Mon Oct 19 03:11:13 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 3294e627def4a30fa07ea0fd62dbbe2533757ba1
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date:   Tue Jul 10 13:05:01 2007 +0000

    document latest changes. update wiki export script.
---
 NEWS               | 15 ++++++++-------
 doc/export-wiki.sh | 26 +++++++++++++++++++++++---
 2 files changed, 31 insertions(+), 10 deletions(-)

diff --git a/NEWS b/NEWS
index 09cd19c..ae29253 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,10 @@
 NEWS for Engine PKCS#11 -- History of user visible changes
 
-New in 0.1.4; 2007-07-07 Andreas Jellinghaus
-* new urls
-* disabled some dead code
-* new max length for pin: 32 bytes
-* make internal variables and code static
-* parse slot as hex too
-* support selecting slot by label
+New in 0.1.4; 2007-07-10; Andreas Jellinghaus
+* update wiki export script.
+* new urls.
+* disabled some dead code.
+* new max length for pin: 32 bytes.
+* make internal variables and code static.
+* parse slot as hex too.
+* support selecting slot by label.
diff --git a/doc/export-wiki.sh b/doc/export-wiki.sh
index f6d7f1c..303e1e2 100644
--- a/doc/export-wiki.sh
+++ b/doc/export-wiki.sh
@@ -3,7 +3,8 @@
 set -e
 
 export SERVER=http://www.opensc-project.org
-export WIKI=engine_pkcs11/wiki
+export PROJECT=engine_pkcs11
+export WIKI=$PROJECT/wiki
 export XSL=export-wiki.xsl
 
 SRCDIR=.
@@ -24,7 +25,8 @@ rm -rf "$SRCDIR"/*.html "$SRCDIR"/*.css
 
 wget -nv $SERVER/$WIKI/TitleIndex -O "$SRCDIR"/TitleIndex.tmp
 
-grep "\"/$WIKI/[^\"]*\"" "$SRCDIR"/TitleIndex.tmp \
+sed -e "s#</li>#</li>\n#g" < "$SRCDIR"/TitleIndex.tmp \
+	| grep "\"/$WIKI/[^\"]*\"" \
         |sed -e "s#.*\"/$WIKI/\([^\"]*\)\".*#\1#g" \
 	> "$SRCDIR"/WikiWords.tmp
 sed -e /^Trac/d -e /^Wiki/d -e /^TitleIndex/d -e /^RecentChanges/d \
@@ -34,7 +36,7 @@ for A in WikiStart `cat "$SRCDIR"/WikiWords.tmp`
 do
 	F=`echo $A|sed -e 's/\//_/g'`
 	wget -nv $SERVER/$WIKI/$A  -O "$SRCDIR"/$F.tmp
-	xsltproc --output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp
+	xsltproc --nonet --output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp
 	sed -e "s#<a href=\"/$WIKI/\([^\"]*\)\"#<a href=\"\1.html\"#g" \
 		-i "$SRCDIR"/$F.html
 done
@@ -44,4 +46,22 @@ mv "$SRCDIR"/WikiStart.html "$SRCDIR"/index.html
 wget -nv http://www.opensc-project.org/trac/css/trac.css \
 	-O "$SRCDIR"/trac.css
 
+cat *.html |grep "<img src=\"/$PROJECT/attachment/wiki" \
+	|sed -e 's/.*<img src="\/'$PROJECT'\/attachment\/wiki\/\([^"]*\)?format=raw".*/\1/g' \
+	|sort -u |while read A
+do
+	B="`echo $A |tr / _`"
+	wget -nv "$SERVER/$PROJECT/attachment/wiki/$A?format=raw" -O $B
+	for C in *.html
+	do
+		sed -e 's#\/'$PROJECT'\/attachment\/wiki\/'$A'?format=raw#'$B'#g' -i $C
+	done
+done
+
+for A in *.html
+do
+	sed -e 's#href="/'$PROJECT'/wiki/\([^"]*\)"#href="\1.html"#g' \
+		-i $A
+done
+
 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