about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-11 12:52:51 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-11 12:52:51 -0800
commit8e9ddaee55650e87aa8cb3c851824229e41564d2 (patch)
tree22a9714bf7d820062ace6c321d227afa5bdafbcb
parentb10bbc3a51801345c68fdfbe0eff1700451c7be5 (diff)
downloadmu-8e9ddaee55650e87aa8cb3c851824229e41564d2.tar.gz
.
-rwxr-xr-xtools/update_html58
1 files changed, 57 insertions, 1 deletions
diff --git a/tools/update_html b/tools/update_html
index 5f7c2c90..8110b010 100755
--- a/tools/update_html
+++ b/tools/update_html
@@ -19,7 +19,7 @@ process() {
 URL_BASE='https://github.com/akkartik/mu/blob/main'
 
 convert_html() {
-  vim -u $MYVIM/vimrc.vim -c "set number" -c TOhtml -c write -c qall $1
+  vim -c "set number" -c TOhtml -c write -c qall $1
 
   sed -i 's,<title>.*/mu/,<title>Mu - ,' $1.html
   sed -i 's,\.html</title>,</title>,' $1.html
@@ -74,4 +74,60 @@ do
   process $f
 done
 
+( cd linux
+  ctags -x [0-9]*.subx [0-9]*.mu  > /tmp/tags
+)
+for f in linux/[0-9]*.subx linux/[0-9]*.mu
+do
+  process $f
+done
+
+for f in linux/[^0-9]*.subx linux/[^0-9]*.mu
+do
+  ( cd $(dirname $f)
+    ctags -x [0-9]*.subx [0-9]*.mu $(basename $f)  > /tmp/tags
+  )
+  process $f
+done
+
+for f in linux/apps/*.subx linux/apps/*.mu
+do
+  ( cd $(dirname $f)
+    ctags -x ../[0-9]*.subx ../[0-9]*.mu $(basename $f) > /tmp/tags
+  )
+  process $f
+done
+
+for f in linux/apps/advent2020/*.mu linux/apps/advent2017/*.mu
+do
+  ( cd $(dirname $f)
+    ctags -x ../../[0-9]*.subx ../../[0-9]*.mu $(basename $f) > /tmp/tags
+  )
+  process $f
+done
+
+( cd linux/tile
+  ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags
+)
+for f in linux/tile/*.mu
+do
+  process $f
+done
+
+( cd linux/apps/raytracing
+  ctags -x ../../[0-9]*.subx ../../[0-9]*.mu *.mu > /tmp/tags
+)
+for f in linux/apps/raytracing/*.mu
+do
+  process $f
+done
+
+( cd linux/bootstrap
+  ctags -x *.cc  |grep -v '^. '  > /tmp/tags  # don't hyperlink every 'i' to the integer register variant
+)
+for f in linux/bootstrap/*.cc
+do
+  process $f
+done
+
 rm /tmp/tags