Changeset 36
- Timestamp:
- 07/10/07 15:05:51 (17 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
NEWS (modified) (1 diff)
-
doc/export-wiki.sh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r35 r36 1 1 NEWS for Pam_p11 -- History of user visible changes 2 2 3 New in 0.1.2; 2007-07-07 Andreas Jellinghaus 3 New in 0.1.2; 2007-07-10; Andreas Jellinghaus 4 * update wiki export script (add images, fix links). 4 5 * make some functions static. 5 * rename variables to avoid names of glibc functions (e.g. random) 6 * rename variables to avoid names of glibc functions (e.g. random). 6 7 * do not save the password (i.e. pin - shouldn't go anywhere except 7 to the card) 8 8 to the card). -
trunk/doc/export-wiki.sh
r26 r36 4 4 5 5 export SERVER=http://www.opensc-project.org 6 export WIKI=pam_p11/wiki 6 export PROJECT=pam_p11 7 export WIKI=$PROJECT/wiki 7 8 export XSL=export-wiki.xsl 8 9 … … 25 26 wget -nv $SERVER/$WIKI/TitleIndex -O "$SRCDIR"/TitleIndex.tmp 26 27 27 grep "\"/$WIKI/[^\"]*\"" "$SRCDIR"/TitleIndex.tmp \ 28 sed -e "s#</li>#</li>\n#g" < "$SRCDIR"/TitleIndex.tmp \ 29 | grep "\"/$WIKI/[^\"]*\"" \ 28 30 |sed -e "s#.*\"/$WIKI/\([^\"]*\)\".*#\1#g" \ 29 31 > "$SRCDIR"/WikiWords.tmp … … 35 37 F=`echo $A|sed -e 's/\//_/g'` 36 38 wget -nv $SERVER/$WIKI/$A -O "$SRCDIR"/$F.tmp 37 xsltproc -- output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp39 xsltproc --nonet --output "$SRCDIR"/$F.html "$SRCDIR"/$XSL "$SRCDIR"/$F.tmp 38 40 sed -e "s#<a href=\"/$WIKI/\([^\"]*\)\"#<a href=\"\1.html\"#g" \ 39 41 -i "$SRCDIR"/$F.html … … 45 47 -O "$SRCDIR"/trac.css 46 48 49 cat *.html |grep "<img src=\"/$PROJECT/attachment/wiki" \ 50 |sed -e 's/.*<img src="\/'$PROJECT'\/attachment\/wiki\/\([^"]*\)?format=raw".*/\1/g' \ 51 |sort -u |while read A 52 do 53 B="`echo $A |tr / _`" 54 wget -nv "$SERVER/$PROJECT/attachment/wiki/$A?format=raw" -O $B 55 for C in *.html 56 do 57 sed -e 's#\/'$PROJECT'\/attachment\/wiki\/'$A'?format=raw#'$B'#g' -i $C 58 done 59 done 60 61 for A in *.html 62 do 63 sed -e 's#href="/'$PROJECT'/wiki/\([^"]*\)"#href="\1.html"#g' \ 64 -i $A 65 done 66 47 67 rm "$SRCDIR"/*.tmp
