From 830a1cf93fad369ae0ebab3a49d08678b51059b0 Mon Sep 17 00:00:00 2001
From: "Eric S. Raymond"
Date: Thu, 2 Sep 2010 08:22:24 -0400
Subject: [PATCH] Make the current package version available for a web page
template.
---
buildaux/Makefile.am | 3 +++
configure.ac | 4 ++--
website/{index.html => index.html.in} | 2 ++
3 files changed, 7 insertions(+), 2 deletions(-)
rename website/{index.html => index.html.in} (99%)
diff --git a/buildaux/Makefile.am b/buildaux/Makefile.am
index b926d10..d3cbce9 100644
--- a/buildaux/Makefile.am
+++ b/buildaux/Makefile.am
@@ -197,6 +197,9 @@ check-am: ick$(EXEEXT)
doc/ick.txt: doc/ick.txi
cd $(top_srcdir)/doc && make ick.txt
+echo-version:
+ @echo @PACKAGE_VERSION@
+
# The build system itself is included in the makefile; tell Automake
# about my tweaking.
$(top_srcdir)/configure: $(am__configure_deps)
diff --git a/configure.ac b/configure.ac
index 3859891..488b2c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,8 +76,8 @@ INCLUDE_HIDDEN_FROM_AUTOMAKE="include"
AC_SUBST(PACKAGE_VERSION)
AC_SUBST(INCLUDE_HIDDEN_FROM_AUTOMAKE)
-AC_CONFIG_FILES([Makefile:buildaux/Makefile.in coopt.sh:src/cooptsh.in host.mak:buildaux/hostmak.in])
-AC_OUTPUT
+AC_CONFIG_FILES([Makefile:buildaux/Makefile.in coopt.sh:src/cooptsh.in host.mak:buildaux/hostmak.in website/index.html])
+AC_OUTPUT(,[chmod a-w website/index.html])
# After the output, chmod coopt.sh to be executable.
chmod a+x coopt.sh
diff --git a/website/index.html b/website/index.html.in
similarity index 99%
rename from website/index.html
rename to website/index.html.in
index 6e9d30e..baea8b0 100644
--- a/website/index.html
+++ b/website/index.html.in
@@ -113,6 +113,8 @@ unknown.
completed. Have patience, the project is presently reorganizing after
the move to git.
+
+
Other Tools
Jonathan Ferro has written an