[Pkg-mono-svn-commits] rev 3788 - scripts
David Paleino
hanska-guest at alioth.debian.org
Sat Nov 22 23:39:00 UTC 2008
Author: hanska-guest
Date: 2008-11-22 23:39:00 +0000 (Sat, 22 Nov 2008)
New Revision: 3788
Added:
scripts/make-policy
Log:
Adding make-policy script
Added: scripts/make-policy
===================================================================
--- scripts/make-policy (rev 0)
+++ scripts/make-policy 2008-11-22 23:39:00 UTC (rev 3788)
@@ -0,0 +1,15 @@
+#!/bin/bash
+BASE=/home/groups/pkg-mono
+DOCS=$BASE/htdocs/docs
+
+REPOS=$1
+REV=$2
+AUTH=$(svnlook author $REPOS -r $REV | sed 's/\&/\&/g;s/</\</g;s/>/\>/g')
+
+sed -e "s/@REV@/$REV/" \
+ -e "s/@DATE@/`date -R`/" \
+ -e "s/@AUTHOR@/$AUTH/g" -i $DOCS/policy.xml
+
+xsltproc --output $BASE/static/docs/policy.html \
+ /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl \
+ $DOCS/policy.xml 2>/dev/null
Property changes on: scripts/make-policy
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-mono-svn-commits
mailing list