diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-22 16:33:06 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-22 16:33:06 -0700 |
commit | f40b079c2a7abf824e29451837f188f7cce7b943 (patch) | |
tree | 112f6449970da14efd3c96f3c832d9a20df46d75 /update_html | |
parent | c02478c4010d54acfaed0318a2c2c689b468e92e (diff) | |
download | mu-f40b079c2a7abf824e29451837f188f7cce7b943.tar.gz |
3559
Diffstat (limited to 'update_html')
-rwxr-xr-x | update_html | 13 |
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 |