From: <suc...@us...> - 2006-07-29 20:30:50
|
Revision: 149 Author: sucknblow Date: 2006-07-29 13:30:38 -0700 (Sat, 29 Jul 2006) ViewCVS: http://svn.sourceforge.net/pmplib/?rev=149&view=rev Log Message: ----------- Ugly hack to get the manual page on the website. We probably ought to redo the manual using Docbook. Modified Paths: -------------- trunk/doc/snapshot trunk/frontend/easypmp/cui/easypmp.1 trunk/webpage/Makefile trunk/webpage/about.xml trunk/webpage/document.xml trunk/webpage/pmplib.xsl Added Paths: ----------- trunk/webpage/document_easypmp_manual.xml.in Modified: trunk/doc/snapshot =================================================================== --- trunk/doc/snapshot 2006-07-29 17:47:45 UTC (rev 148) +++ trunk/doc/snapshot 2006-07-29 20:30:38 UTC (rev 149) @@ -59,11 +59,3 @@ debian-src-snapshot-upload: debian-src-snapshot snapshot-upload scp $(SNAPSHOTS)/$(SNAPVER)/debian/* $(UPLOAD_TO) -man2html: - sed '/AUTHOR/,//d' trunk/frontend/easypmp/cui/easypmp.1 | \ - man2html | \ - sed '1,2d; /^$$/d' > easypmp.html - echo -e "H\n/<A/\ns/<A.*//\n/\ns\nka\n/index/,/This.doc/-1m\nw" | \ - ed easypmp.html - - Modified: trunk/frontend/easypmp/cui/easypmp.1 =================================================================== --- trunk/frontend/easypmp/cui/easypmp.1 2006-07-29 17:47:45 UTC (rev 148) +++ trunk/frontend/easypmp/cui/easypmp.1 2006-07-29 20:30:38 UTC (rev 149) @@ -1,5 +1,5 @@ .\" Hey, EMACS: -*- nroff -*- -.TH EASYPMP 1 "June 25, 2006" +.TH EASYPMP 1 "July 29, 2006" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -7,8 +7,6 @@ .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling .\" .br insert line break .\" .sp <n> insert n+1 empty lines .\" for manpage-specific macros, see man(7) @@ -224,7 +222,7 @@ .B easypmp -u /media/sda .br -.SH AUTHOR +.SH AUTHORS \fBeasypmp\fP was written by Nyaochi <nyaochi@ny...@sa...>, who also wrote an initial POSIX port using the Cygwin environment. Modified: trunk/webpage/Makefile =================================================================== --- trunk/webpage/Makefile 2006-07-29 17:47:45 UTC (rev 148) +++ trunk/webpage/Makefile 2006-07-29 20:30:38 UTC (rev 149) @@ -5,11 +5,13 @@ download.html \ document.html \ document_easypmp_tutorial.html \ + document_easypmp_manual.html \ document_jspl.html \ faq.html \ about.html \ links.html \ index.rss \ + easypmp.pdf all: $(TARGETS) @@ -24,3 +26,32 @@ index.rss: newsrss.xsl news.xml xsltproc --stringparam date "`date -R`" newsrss.xsl news.xml > $@ +# This is an ugly hack to include the manual page on the web-site +# We ought to re-write it in DocBook perhaps. +easypmp.html: + man2html ../frontend/easypmp/cui/easypmp.1 | \ + sed 's^<<A HREF="mailto:\(.*\)">\(.*\)</A>.*>^^' | \ + sed '1,2d; /^$$/d' > easypmp.html + # Move the index to the top + echo -e "H\n/<A/\ns/<A.*//\n/\ns\nka\n/index/,/This document/-1m\nw" | ed easypmp.html + # Remove "This document was... " text + echo -e "H\n/^This document was\nd\nd\nd\nw\n"|ed easypmp.html + # Add a space before the synopsys section + echo -e "/<H2>SYNOPSIS\n-2\na\n<br />\n.\nw\n" | ed easypmp.html + # Convert *'s to list items + sed -i 's#^<BR> \* #<li>#' easypmp.html + # Convert to xhtml + tidy -m -asxhtml -c easypmp.html || true + # Trim top and bottom + sed -i '1,/id="index"/d' easypmp.html + sed -i '/<\/body>/,/.*/d' easypmp.html + sed -i '/^<hr \/>$$/d' easypmp.html + +easypmp.pdf: + groff -m mandoc ../frontend/easypmp/cui/easypmp.1 > easypmp.pdf + +document_easypmp_manual.html: document_easypmp_manual.xml.in pmplib.xsl easypmp.html + xsltproc pmplib.xsl document_easypmp_manual.xml.in > document_easypmp_manual.xml + m4 document_easypmp_manual.xml > document_easypmp_manual.html + + Modified: trunk/webpage/about.xml =================================================================== --- trunk/webpage/about.xml 2006-07-29 17:47:45 UTC (rev 148) +++ trunk/webpage/about.xml 2006-07-29 20:30:38 UTC (rev 149) @@ -35,7 +35,8 @@ <dt>Martin Ellis</dt> <dd> -Project admin and core developer. +Project admin and core developer. Owns an iriver U10 [1GB].<br/> +<img src="http://martin.ellis.name/img/martin.ellis.kdemail.net.png" /> </dd> </dl> Modified: trunk/webpage/document.xml =================================================================== --- trunk/webpage/document.xml 2006-07-29 17:47:45 UTC (rev 148) +++ trunk/webpage/document.xml 2006-07-29 20:30:38 UTC (rev 149) @@ -9,13 +9,16 @@ <body> -<section caption="PMPlib Document"> +<section caption="PMPlib Documentation"> <dl> <dt><a href="./document_easypmp_tutorial.html">EasyPMP Tutorial</a></dt> -<dd>This article presents a life with EasyPMP. I strongly suggest one to read this before using EasyPMP.</dd> +<dd>This article presents a life with EasyPMP. It illustrates the use of the easypmp program for Windows. Reading this before using EasyPMP on Windows is strongly recommended.</dd> +<dt><a href="./document_easypmp_manual.html">EasyPMP Manual</a></dt> +<dd>This is the manual page for the easypmp command line program. Reading this before using <tt>easypmp</tt> on Linux, or other POSIX-style systems, is strongly recommended.</dd> + <dt><a href="./document_jspl.html">JavaScript playlist (JSPL)</a></dt> <dd>Specification of JavaScript playlist (JSPL)</dd> Copied: trunk/webpage/document_easypmp_manual.xml.in (from rev 147, trunk/webpage/document_easypmp_tutorial.xml) =================================================================== --- trunk/webpage/document_easypmp_manual.xml.in (rev 0) +++ trunk/webpage/document_easypmp_manual.xml.in 2006-07-29 20:30:38 UTC (rev 149) @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<?xml-stylesheet href="./pmplib.xsl" type="application/xml"?> + +<page> +<head> +<title>EasyPMP Manual</title> +<last-update>$Date$</last-update> +</head> + +<body> + +<section caption="EasyPMP Manual"> +<p> +This manual page describes the use of the <tt>easypmp</tt> command +line program. +</p> + +<p>A <a href="easypmp.pdf">PDF version</a> of the manual is also +available for printing. +</p> + +</section> + +include(easypmp.html) + +</body> +</page> Modified: trunk/webpage/pmplib.xsl =================================================================== --- trunk/webpage/pmplib.xsl 2006-07-29 17:47:45 UTC (rev 148) +++ trunk/webpage/pmplib.xsl 2006-07-29 20:30:38 UTC (rev 149) @@ -291,9 +291,10 @@ <li><a href="index.html">Home</a></li> <li><a href="news.html">News</a></li> <li><a href="download.html">Download</a></li> - <li><a href="document.html">Document</a> + <li><a href="document.html">EasyPMP Documentation</a> <ul> - <li><a href="document_easypmp_tutorial.html">EasyPMP Tutorial</a></li> + <li><a href="document_easypmp_tutorial.html">Tutorial (Windows)</a></li> + <li><a href="document_easypmp_manual.html">Manual (POSIX)</a></li> <li><a href="document_jspl.html">JavaScript Playlist (JSPL)</a></li> </ul> </li> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |