about summary refs log tree commit diff stats
path: root/update_html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-22 16:33:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-22 16:33:06 -0700
commitf40b079c2a7abf824e29451837f188f7cce7b943 (patch)
tree112f6449970da14efd3c96f3c832d9a20df46d75 /update_html
parentc02478c4010d54acfaed0318a2c2c689b468e92e (diff)
downloadmu-f40b079c2a7abf824e29451837f188f7cce7b943.tar.gz
3559
Diffstat (limited to 'update_html')
-rwxr-xr-xupdate_html13
1 files changed, 11 insertions, 2 deletions
diff --git a/update_html b/update_html
index b33ca08d..5ca4d74b 100755
--- a/update_html
+++ b/update_html
@@ -1,8 +1,6 @@
 #!/bin/bash
 # Regenerate html files.
 
-rm html/*.html html/edit/*.html
-
 process() {
   vim -c TOhtml -c write -c qall $1
 
@@ -22,6 +20,17 @@ process() {
   mv -i $1.html html/`dirname $1`
 }
 
+if [ $# -gt 0 ]
+then
+  for f in $*
+  do
+    process $f
+  done
+  exit 0
+fi
+
+rm html/*.html html/edit/*.html
+
 for f in *.cc *.mu edit/*.mu
 do
   process $f