5799 - move html-generation to `tools/` directory

This commit is contained in:
Kartik Agaram 2019-12-07 16:19:38 -08:00
parent 25636f70d0
commit 9e45cae061
7 changed files with 7 additions and 16 deletions

2
clean
View File

@ -7,6 +7,6 @@ rm -rf .until
test $# -gt 0 && exit 0 # convenience: 'clean top-level' to leave subsidiary tools alone
rm -rf tools/enumerate tangle/tangle tangle/*_list */*.dSYM
rm -rf browse_trace/browse_trace_bin browse_trace/*_list
rm -rf tools/treeshake
rm -rf tools/treeshake tools/linkify tools/*.dSYM
rm -rf tmp_linux mu_linux.iso outfs initrd.fat mu_soso.iso
( cd kernel.soso && make clean; )

View File

@ -1,3 +0,0 @@
Tool used while rendering Mu's codebase in html. See the mu/update_html script.
Extremely hacky; just see the number of tests.

View File

@ -1,4 +0,0 @@
#!/bin/sh
set -e
c++ -g linkify.cc -o linkify

View File

@ -1,4 +0,0 @@
#!/bin/sh
set -e
rm -rf linkify *.dSYM

View File

@ -12,8 +12,11 @@ These are built automatically.
These are built lazily.
* `linkify`: inserts hyperlinks from variables to definitions in Mu's html
sources. Hacky; just see the number of tests. Invoked by `update_html`.
* `treeshake_all`: rebuild SubX binaries without tests and unused functions.
Pretty hacky; just helps estimate the code needed to perform various tasks.
Hacky; just helps estimate the code needed to perform various tasks.
```
tools/treeshake_all
```

View File

@ -4,13 +4,13 @@
set -e
( cd linkify; build; )
( cd tools; c++ -g linkify.cc -o linkify; )
# generate html/$1.html using /tmp/tags
process() {
rm -f html/$1.html
convert_html $1
linkify/linkify /tmp/tags html/$1.html
tools/linkify /tmp/tags html/$1.html
mv html/$1.html.out html/$1.html
}
@ -71,4 +71,3 @@ do
done
rm /tmp/tags
( cd linkify; clean; )