aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2022-08-22 12:26:18 -0700
committerJohn MacFarlane <[email protected]>2022-08-22 12:26:18 -0700
commit3bfd682fbe254380382d7f77fa4037bbe0775ade (patch)
tree38152a1e17e5a775c1a23a266ee8edbe21ee22bd
parenta63e0d44cfd08639415abf0de148439bed758e93 (diff)
trypandoc Makefile: update date for js caching automatically.
-rw-r--r--trypandoc/Makefile4
-rw-r--r--trypandoc/index.html2
2 files changed, 4 insertions, 2 deletions
diff --git a/trypandoc/Makefile b/trypandoc/Makefile
index 8ebfb5f2d..6fa74efbf 100644
--- a/trypandoc/Makefile
+++ b/trypandoc/Makefile
@@ -1,2 +1,4 @@
upload:
- scp index.html trypandoc.js website:pandoc.org/try/
+ scp trypandoc.js website:pandoc.org/try/
+ scp index.html website:pandoc.org/try/index.html.in
+ ssh website 'sed -e "s/__DATE__/$$(date -Iseconds)/" pandoc.org/try/index.html.in > pandoc.org/try/index.html'
diff --git a/trypandoc/index.html b/trypandoc/index.html
index 137e64f49..ac1736fa7 100644
--- a/trypandoc/index.html
+++ b/trypandoc/index.html
@@ -175,7 +175,7 @@
<p class="version">pandoc version <span id="version"></span></p>
</footer>
-<script src="trypandoc.js?202208221217"></script>
+<script src="trypandoc.js?__DATE__"></script>
</body>
</html>