Some helpful scripts.
authorSilvia Pfeiffer
Mon, 15 Apr 2013 11:44:50 +1000
changeset 91 1c23719d1428
parent 90 b8fb65b6861a
child 92 87a8995f8f7b
Some helpful scripts.
webvtt/create_static.sh
webvtt/publish.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webvtt/create_static.sh	Mon Apr 15 11:44:50 2013 +1000
@@ -0,0 +1,4 @@
+#!/bin/bash
+# Converts ReSpec based webvtt spec to static html page
+echo "phantomjs ../../respec/tools/respec2html.js webvtt.html Overview.html"
+phantomjs ../../respec/tools/respec2html.js webvtt.html Overview.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/webvtt/publish.sh	Mon Apr 15 11:44:50 2013 +1000
@@ -0,0 +1,28 @@
+#!/bin/bash
+# Publishes webvtt spec to cvs
+
+if [ $# -eq 0 ]
+then
+  echo $0" error: provide W3C commit message as argument"
+  exit 1
+fi
+
+COMMIT_MSG=$1
+
+echo "./create_static.sh"
+./create_static.sh
+
+echo "cp Overview.html ~/Sites/html5/CVS/html5/webvtt/"
+cp Overview.html ~/Sites/html5/CVS/html5/webvtt/
+
+echo "cd ~/Sites/html5/CVS/html5/webvtt"
+cd ~/Sites/html5/CVS/html5/webvtt
+
+echo "OK to commit to W3C with following message (y/n)? "$COMMIT_MSG
+read CONTINUE
+
+if [ $CONTINUE = 'y' -o $CONTINUE = 'Y' ]
+then
+  echo "cvs commit -m '$COMMIT_MSG'"
+  cvs commit -m "$COMMIT_MSG"
+fi
\ No newline at end of file