[libgda] Integrated build date in configuration script
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Integrated build date in configuration script
- Date: Sat, 8 Jan 2011 14:36:11 +0000 (UTC)
commit b0eed88a2e70c08ad6c474c79a9e65560e209a3e
Author: Vivien Malerba <malerba gnome-db org>
Date: Fri Jan 7 14:58:40 2011 +0100
Integrated build date in configuration script
configure.ac | 6 ++++++
doc/C/.gitignore | 1 +
doc/C/Makefile.am | 4 ++--
doc/C/builddate.xml.in | 1 +
doc/C/libgda-4.0-docs.sgml | 5 +++--
tools/gda-sql.1.in | 2 +-
6 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e7dc59c..b8d1b9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,6 +61,9 @@ AC_CHECK_SIZEOF(unsigned int,0)
AC_CHECK_SIZEOF(unsigned long int,0)
AC_CHECK_TYPE(uint8_t, unsigned char)
+GDA_BUILDDATE=`date '+%F'`
+AC_SUBST(GDA_BUILDDATE, $GDA_BUILDDATE)
+
dnl **********************
dnl Cross compilation test
dnl **********************
@@ -847,6 +850,7 @@ doc/Makefile
doc/C/Makefile
doc/C/libgda.types
doc/C/version.xml
+doc/C/builddate.xml
data/Makefile
stamp.h
])
@@ -856,6 +860,8 @@ dnl Dirty work to be able to build documentation
chmod -R u+w ${srcdir}/doc/C
cp doc/C/version.xml ${srcdir}/doc/C/version.xml.tmp
mv ${srcdir}/doc/C/version.xml.tmp ${srcdir}/doc/C/version.xml
+cp doc/C/builddate.xml ${srcdir}/doc/C/builddate.xml.tmp
+mv ${srcdir}/doc/C/builddate.xml.tmp ${srcdir}/doc/C/builddate.xml
cp ${srcdir}/doc/C/libgda-sections.txt doc/C/libgda-4.0-sections.txt
echo "" >> doc/C/libgda-4.0-sections.txt
diff --git a/doc/C/.gitignore b/doc/C/.gitignore
index ef4c737..8955943 100644
--- a/doc/C/.gitignore
+++ b/doc/C/.gitignore
@@ -27,5 +27,6 @@ pdf-build.stamp
libgda-4.0-undeclared.txt
libgda-4.0-unused.sgml
version.xml
+builddate.xml
*.bak
libgda-4.0-sections.txt
diff --git a/doc/C/Makefile.am b/doc/C/Makefile.am
index 779d873..b88512a 100644
--- a/doc/C/Makefile.am
+++ b/doc/C/Makefile.am
@@ -51,7 +51,7 @@ endif
MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=gda --ignore-files="parser.c delimiter.c binreloc.c libcsv.c md5c.c providers tools control-center tests samples plugins"
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE)
-content_files = fdl-appendix.sgml version.xml
+content_files = fdl-appendix.sgml version.xml builddate.xml
# Images to copy into HTML directory
HTML_IMAGES = DataModels.png \
@@ -81,7 +81,7 @@ EXTRA_DIST += examples/full_example.c installation.xml limitations.xml migration
DataModels.svg \
architecture.svg parts.svg stmt-unknown.svg stmt-select.svg stmt-insert1.svg stmt-insert2.svg \
stmt-update.svg stmt-compound.svg information_schema.svg howto-exec.svg thread-wrapper.svg \
- version.xml.in \
+ version.xml.in builddate.xml.in \
visual_index.xml prov-notes.xml \
libgda-sections.txt libgda-ui-sections.txt libgda.types libgda.types.in libgda-ui.types \
examples/blobtest.c
diff --git a/doc/C/builddate.xml.in b/doc/C/builddate.xml.in
new file mode 100644
index 0000000..978903f
--- /dev/null
+++ b/doc/C/builddate.xml.in
@@ -0,0 +1 @@
+ GDA_BUILDDATE@
diff --git a/doc/C/libgda-4.0-docs.sgml b/doc/C/libgda-4.0-docs.sgml
index 78bcbfd..0d23e73 100644
--- a/doc/C/libgda-4.0-docs.sgml
+++ b/doc/C/libgda-4.0-docs.sgml
@@ -3,6 +3,7 @@
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY nbsp " ">
<!ENTITY version SYSTEM "version.xml">
+<!ENTITY builddate SYSTEM "builddate.xml">
<!ENTITY LIBGDA "<application>Libgda</application>">
<!ENTITY GNOMEDB "<application>GNOME-DB</application>">
<!ENTITY igalia '<emphasis><ulink url="http://www.igalia.com">Igalia, S.L.</ulink></emphasis>'>
@@ -233,9 +234,9 @@
</contrib>
</author>
</authorgroup>
- <date>April 2010</date>
+ <date>&builddate;</date>
<copyright>
- <year>1999 - 2010</year>
+ <year>1999 - 2011</year>
<holder>The GNOME Foundation</holder>
</copyright>
<abstract>
diff --git a/tools/gda-sql.1.in b/tools/gda-sql.1.in
index eccb3dc..9260376 100644
--- a/tools/gda-sql.1.in
+++ b/tools/gda-sql.1.in
@@ -1,4 +1,4 @@
-.TH gda-sql 1 "June 03 2010" "Version @PACKAGE_VERSION@" "LIBGDA Manual Pages"
+.TH gda-sql 1 "@GDA_BUILDDATE@" "Version @PACKAGE_VERSION@" "LIBGDA Manual Pages"
.SH NAME
gda-sql - an SQL console based on Libgda
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]