about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-07 16:19:38 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-07 18:06:17 -0800
commit9e45cae061fd345d3270f236769bd94966a42eb2 (patch)
tree5459e3e692e039f0ce1663a60af99d6053ccbc0e
parent25636f70d0f116ef2f842e9ca25dfb781071cd2d (diff)
downloadmu-9e45cae061fd345d3270f236769bd94966a42eb2.tar.gz
5799 - move html-generation to `tools/` directory
-rwxr-xr-xclean2
-rw-r--r--linkify/Readme3
-rwxr-xr-xlinkify/build4
-rwxr-xr-xlinkify/clean4
-rw-r--r--tools/Readme.md5
-rw-r--r--tools/linkify.cc (renamed from linkify/linkify.cc)0
-rwxr-xr-xtools/update_html (renamed from update_html)5
7 files changed, 7 insertions, 16 deletions
diff --git a/clean b/clean
index 175356e3..ef6e9d4d 100755
--- a/clean
+++ b/clean
@@ -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; )
diff --git a/linkify/Readme b/linkify/Readme
deleted file mode 100644
index c4625a9d..00000000
--- a/linkify/Readme
+++ /dev/null
@@ -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.
diff --git a/linkify/build b/linkify/build
deleted file mode 100755
index 3c96ad00..00000000
--- a/linkify/build
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-set -e
-
-c++ -g linkify.cc -o linkify
diff --git a/linkify/clean b/linkify/clean
deleted file mode 100755
index 3feef907..00000000
--- a/linkify/clean
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-set -e
-
-rm -rf linkify *.dSYM
diff --git a/tools/Readme.md b/tools/Readme.md
index 2649ef72..29a1a6ef 100644
--- a/tools/Readme.md
+++ b/tools/Readme.md
@@ -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
   ```
diff --git a/linkify/linkify.cc b/tools/linkify.cc
index ece50748..ece50748 100644
--- a/linkify/linkify.cc
+++ b/tools/linkify.cc
diff --git a/update_html b/tools/update_html
index 2c07b476..478d5d6c 100755
--- a/update_html
+++ b/tools/update_html
@@ -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; )
218'>218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286