glossary
authorLuc Moreau <l.moreau@ecs.soton.ac.uk>
Sun, 19 Feb 2012 23:07:32 +0000
changeset 1610 c770bb211c9b
parent 1609 eb9d5a320b5c
child 1611 7552d9bb8d96
glossary
model/working-copy/Makefile
model/working-copy/glossary.js
--- a/model/working-copy/Makefile	Sun Feb 19 23:01:34 2012 +0000
+++ b/model/working-copy/Makefile	Sun Feb 19 23:07:32 2012 +0000
@@ -2,6 +2,12 @@
 HGID.OLD=`hg -q id`
 HGID=`hg parents --template='{node|short}'`
 
+make.glossary.js: glossary.html Makefile
+	$(MAKE) hgid > glossary.js
+	echo "glossary_html='\\ " >> glossary.js
+	cat glossary.html | awk '{ print $$0 "  \\" }' >> glossary.js
+	echo "'" >> glossary.js
 
-go:
-	echo "http://dvcs.w3.org/hg/prov/file/$(HGID)/model/working-copy/glossary.html"
+hgid:
+	echo "glossary_hg='http://dvcs.w3.org/hg/prov/file/$(HGID)/model/working-copy/glossary.html';"
+
--- a/model/working-copy/glossary.js	Sun Feb 19 23:01:34 2012 +0000
+++ b/model/working-copy/glossary.js	Sun Feb 19 23:07:32 2012 +0000
@@ -1,14 +1,20 @@
-
-
-
-glossary_root='  \
-<div class="glossary" id="glossary-entity">   \
-<dfn title="concept-entity">Entities</dfn> are things in the world one  \
- wants to provide provenance for.  For the purpose of this  \
- specification, things can be physical, digital, conceptual, or  \
- otherwise; the world may be real or imaginary.  \
-</div>  \
-';
-
-
-
+echo "glossary_hg='http://dvcs.w3.org/hg/prov/file/`hg parents --template='{node|short}'`/model/working-copy/glossary.html';"
+glossary_hg='http://dvcs.w3.org/hg/prov/file/eb9d5a320b5c/model/working-copy/glossary.html';
+glossary_html='\ 
+  \
+<html>  \
+  \
+<div class="glossary" id="glossary-entity">    \
+<dfn title="concept-entity">Entities</dfn> are things in the world one    \
+ wants to provide provenance for.  For the purpose of this    \
+ specification, things can be physical, digital, conceptual, or    \
+ otherwise; the world may be real or imaginary.    \
+</div>    \
+  \
+  \
+</html>  \
+  \
+  \
+  \
+  \
+'