about summary refs log tree commit diff stats
path: root/update_html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-12-26 21:23:55 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-12-26 21:23:55 -0800
commitfdfe34ded306526bd87568e50ac9a6e03c9c0594 (patch)
treeee2ae7e7ef788213397f8b74c3be2d79379d276d /update_html
parente932f72d36e7b9217ea2e12c12dbd8ed9ea4747b (diff)
downloadmu-fdfe34ded306526bd87568e50ac9a6e03c9c0594.tar.gz
3715
Fix cross-links in html for the edit/ app.

I originally thought I'd need to provide a commandline flag like --rel-path or
something. But we need to support different relative paths in a single html
file. So the solution instead is appropriately engineering the tags file.
Diffstat (limited to 'update_html')
-rwxr-xr-xupdate_html7
1 files changed, 6 insertions, 1 deletions
diff --git a/update_html b/update_html
index 1cf72d00..fdd29ef2 100755
--- a/update_html
+++ b/update_html
@@ -50,7 +50,12 @@ then
   ctags -x *.cc  |grep -v "^operator \| member \| variable "  > cpp.tags
   linkify/linkify cpp.tags html/*.cc.html
   ctags -x 0*.mu  > mu.tags
-  linkify/linkify mu.tags html/*.mu.html html/edit/*.mu.html
+  linkify/linkify mu.tags html/*.mu.html
+  ( cd edit
+    ctags -x *.mu ../0*.mu > mu.tags
+    ../linkify/linkify mu.tags ../html/edit/*.mu.html
+    rm mu.tags
+  )
   rm *.tags
   ( cd linkify; clean; )
   for f in html/*.html html/edit/*.html
='#n144'>144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205