aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissière <rafael@laboissiere.net>2025-06-28 05:02:18 -0300
committerRafael Laboissière <rafael@laboissiere.net>2025-06-28 05:03:38 -0300
commit81043777f7f1932f765ea20d1167980dd4c09524 (patch)
tree08f4191b34f0ccc4eaffc3101ca1ef7482999cc9
parent47845de8ee2e1fcd75828f6269d1b596f43e2de9 (diff)
Add time stamp on web page
-rw-r--r--Makefile3
-rw-r--r--www/index.html.in1
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d08f116..1bcfe23 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ BUILD = www/$(INDEX) apache/praat.conf
REPODATA = repo/db repo/dists repo/pool
REPOHOST = www.cefala.org
USER = rlaboiss
+TODAY = $(shell date)
build-stamp: $(BUILD)
mkdir -p $(REPODATA)
@@ -25,7 +26,7 @@ install-www: build-stamp
sudo service apache2 restart
%: %.in
- sed -e 's|@WWWHOST@|$(WWWHOST)|;s|@WWWDIR@|$(WWWDIR)|;s|@INDEX@|$(INDEX)|;s|@GPGKEY@|$(GPGKEY)|' $< > $@
+ sed -e 's|@WWWHOST@|$(WWWHOST)|;s|@WWWDIR@|$(WWWDIR)|;s|@INDEX@|$(INDEX)|;s|@GPGKEY@|$(GPGKEY)|;s|@TODAY@|$(TODAY)|' $< > $@
.PHONY: clean
clean:
diff --git a/www/index.html.in b/www/index.html.in
index d9dea48..3c4fbb1 100644
--- a/www/index.html.in
+++ b/www/index.html.in
@@ -115,6 +115,7 @@ pre {
<hr>
<p>Problems? Suggestions? Contact rafael AT debian DOT org.</p>
+ <p>Last updated on @TODAY@</p>
</body>
</html>