From c6343de7b00c3189578724feb1088d11b4214e70 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 2 May 2021 00:00:54 -0700 Subject: . --- tools/update_html | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/tools/update_html b/tools/update_html index c1d2b70b..c395f675 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,.*/mu/,<title>Mu - ,' $1.html sed -i 's,\.html,,' $1.html @@ -62,4 +62,47 @@ 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/advent2020/*.mu +do + ( cd $(dirname $f) + ctags -x ../[0-9]*.subx ../[0-9]*.mu $(basename $f) > /tmp/tags + ) + process $f +done + +for dir in linux/raytracing linux/tile +do + ( cd $dir + ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags + ) + for f in $dir/*.mu + do + process $f + done +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 -- cgit 1.4.1-2-gfad0