[med-svn] r1278 - trunk/community/infrastructure/scripts

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Sun Feb 3 16:39:11 UTC 2008


Author: hanska-guest
Date: 2008-02-03 16:39:11 +0000 (Sun, 03 Feb 2008)
New Revision: 1278

Modified:
   trunk/community/infrastructure/scripts/make-policy
Log:
Support for the docbook thing :)


Modified: trunk/community/infrastructure/scripts/make-policy
===================================================================
--- trunk/community/infrastructure/scripts/make-policy	2008-02-03 16:38:12 UTC (rev 1277)
+++ trunk/community/infrastructure/scripts/make-policy	2008-02-03 16:39:11 UTC (rev 1278)
@@ -8,21 +8,8 @@
 
 sed -e "s/@REV@/$REV/" \
     -e "s/@DATE@/`date -R`/" \
-        -e "s/@AUTHOR@/$AUTH/g" -i $DOCS/policy.tex
+        -e "s/@AUTHOR@/$AUTH/g" -i $DOCS/policy.xml
 
-PWD=$(pwd)
-cd $DOCS;
-
-# This is the PDF version
-pdflatex policy.tex
-
-# Now, let's do some magic to have HTML
-sed -e 's@\\includegraphics.*@@g' \
-	-e 's/dvips,//g' \
-	-e 's/pdftex,//g' \
-	policy.tex > policy-plain.tex
-
-rm -rf *.{aux,out,log}
-
-cd $PWD
-
+xsltproc --output $DOCS/policy.html \
+/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbookng.xsl \
+$DOCS/policy.xml




More information about the debian-med-commit mailing list