diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-08-31 22:34:26 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-08-31 22:34:26 -0700 |
commit | 5008a4ec4e21a73246b354758d6a68bb9b33f78f (patch) | |
tree | 78a6a0c1f42019b63830efe1b0337f32014863d5 | |
parent | bf02a19d02f24049e828fbc3fff36be348a44382 (diff) | |
download | mu-5008a4ec4e21a73246b354758d6a68bb9b33f78f.tar.gz |
5597
-rwxr-xr-x | update_html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/update_html b/update_html index d0413e07..2c07b476 100755 --- a/update_html +++ b/update_html @@ -1,5 +1,6 @@ #!/bin/bash # Regenerate html files. +# If given a single argument, regenerate just that file. set -e @@ -40,11 +41,13 @@ convert_html() { 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 for f in examples/*.subx do + test $# -gt 0 && test $1 != $f && continue ( cd examples ctags -x `basename $f` > /tmp/tags ) @@ -54,11 +57,13 @@ done ctags -x *.subx > /tmp/tags for f in *.subx do + test $# -gt 0 && test $1 != $f && continue process $f done for f in apps/*.subx do + test $# -gt 0 && test $1 != $f && continue ( cd apps ctags -x ../*.subx `basename $f` > /tmp/tags ) |