about summary refs log tree commit diff stats
path: root/update_html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-12-27 11:14:12 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-12-27 11:14:12 -0800
commit76a56bc9123e5372a008bc64c3da72f45d09c4d3 (patch)
tree4e5bf079c988bd2e0b39d0241973a83b3fb1cd30 /update_html
parent7be07a6bc84b383dcf78b990a99e3d6370bd5741 (diff)
downloadmu-76a56bc9123e5372a008bc64c3da72f45d09c4d3.tar.gz
3720
Diffstat (limited to 'update_html')
-rwxr-xr-xupdate_html4
1 files changed, 3 insertions, 1 deletions
diff --git a/update_html b/update_html
index 7a9b2ca6..369fb059 100755
--- a/update_html
+++ b/update_html
@@ -1,6 +1,8 @@
 #!/bin/bash
 # Regenerate html files.
 
+set -e
+
 process() {
   vim -c "set number" -c TOhtml -c write -c qall $1
 
@@ -53,12 +55,12 @@ then
   linkify/linkify cpp.tags html/*.cc.html
   ctags -x 0*.mu  > mu.tags
   linkify/linkify mu.tags html/*.mu.html
+  rm *.tags
   ( cd edit
     ctags -x *.mu ../0*.mu > mu.tags
     ../linkify/linkify mu.tags ../html/edit/*.mu.html
     rm mu.tags
   )
-  rm *.tags
   ( cd linkify; clean; )
   for f in html/*.html html/edit/*.html
   do