Revision: 427
http://assorted.svn.sourceforge.net/assorted/?rev=427&view=rev
Author: yangzhang
Date: 2008-02-14 18:29:45 -0800 (Thu, 14 Feb 2008)
Log Message:
-----------
added interim pandocing/web publishing script
Added Paths:
-----------
cpp-commons/trunk/publish.bash
Added: cpp-commons/trunk/publish.bash
===================================================================
--- cpp-commons/trunk/publish.bash (rev 0)
+++ cpp-commons/trunk/publish.bash 2008-02-15 02:29:45 UTC (rev 427)
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+HTMLFRAG=../../assorted-site/trunk
+
+set -o errexit -o nounset
+
+pandoc -s -S --tab-stop=2 -c ../main.css -H $HTMLFRAG/header.html -A $HTMLFRAG/google-footer.html -o index.html README
+
+tmp=/tmp/cpp-commons-site
+rm -rf $tmp/
+mkdir -p $tmp
+cp -r doc/html /$tmp/doc
+cp index.html $tmp/
+
+tar czf - -C $tmp index.html doc |
+ssh shell-sf '
+ set -o errexit -o nounset
+ d=assorted/htdocs/cpp-commons
+ rm -rf $d/
+ mkdir -p $d
+ cd $d/
+ tar xzmf -
+'
+
Property changes on: cpp-commons/trunk/publish.bash
___________________________________________________________________
Name: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|