From 3350c34a74844e21ea69077e01efff3bae64bdcd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 23 Mar 2021 17:31:08 -0700 Subject: . --- tools/update_html | 71 +++++++++++++++++++++++-------------------------------- 1 file changed, 30 insertions(+), 41 deletions(-) (limited to 'tools') diff --git a/tools/update_html b/tools/update_html index e040dc89..c4286bef 100755 --- a/tools/update_html +++ b/tools/update_html @@ -1,6 +1,6 @@ #!/bin/bash # Regenerate html files. -# If given a single argument, regenerate just that file. +# If given a single argument, try to regenerate just that file. Not supported everywhere. set -e @@ -39,80 +39,69 @@ convert_html() { mv -i $1.html html/`dirname $1` } -ctags -x *.cc |grep -v '^. ' > /tmp/tags # don't hyperlink every 'i' to the integer register variant -for f in *.cc -do - test $# -gt 0 && test $1 != $f && continue - process $f -done - ctags -x [0-9]*.subx [0-9]*.mu > /tmp/tags -for f in *.subx *.mu +for f in [0-9]*.subx [0-9]*.mu do test $# -gt 0 && test $1 != $f && continue process $f done -for f in apps/*.subx +for f in [^0-9]*.subx [^0-9]*.mu do test $# -gt 0 && test $1 != $f && continue - ( cd apps - ctags -x ../[0-9]*.subx ../[0-9]*.mu `basename $f` > /tmp/tags - ) + ctags -x [0-9]*.subx [0-9]*.mu $f > /tmp/tags process $f done -for f in apps/*.mu +( cd shell + ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags +) +for f in shell/*.mu do - test $# -gt 0 && test $1 != $f && continue - ( cd apps - ctags -x ../[0-9]*.subx ../[0-9]*.mu `basename $f` > /tmp/tags - ) + test $# -gt 0 && test $1 != shell/$f && continue process $f done -for f in apps/*/*.mu +( cd linux + ctags -x [0-9]*.subx [0-9]*.mu > /tmp/tags +) +for f in linux/[0-9]*.subx linux/[0-9]*.mu do - test $# -gt 0 && test $1 != $f && continue - ( cd `dirname $f` - ctags -x ../../[0-9]*.subx ../../[0-9]*.mu *.mu > /tmp/tags - ) process $f done -for f in baremetal/*.hex +for f in linux/[^0-9]*.subx linux/[^0-9]*.mu do - test $# -gt 0 && test $1 != $f && continue - ( cd baremetal - ctags -x [0-9]*.subx [0-9]*.mu `basename $f` > /tmp/tags + ( cd $(dirname $f) + ctags -x [0-9]*.subx [0-9]*.mu $(basename $f) > /tmp/tags ) process $f done -for f in baremetal/*.subx +for f in linux/advent2020/*.mu do - test $# -gt 0 && test $1 != $f && continue - ( cd baremetal - ctags -x [0-9]*.subx [0-9]*.mu `basename $f` > /tmp/tags + ( cd $(dirname $f) + ctags -x ../[0-9]*.subx ../[0-9]*.mu $(basename $f) > /tmp/tags ) process $f done -for f in baremetal/*.mu +for dir in linux/raytracing linux/tile do - test $# -gt 0 && test $1 != $f && continue - ( cd baremetal - ctags -x [0-9]*.subx [0-9]*.mu `basename $f` > /tmp/tags + ( cd $dir + ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags ) - process $f + for f in $dir/*.mu + do + process $f + done done -for f in baremetal/*/*.mu +( 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 - test $# -gt 0 && test $1 != $f && continue - ( cd `dirname $f` - ctags -x ../../[0-9]*.subx ../../[0-9]*.mu *.mu > /tmp/tags - ) process $f done -- cgit 1.4.1-2-gfad0