generate build date

This commit is contained in:
nlopess
2004-03-18 17:34:36 +00:00
parent 50cac186ba
commit e37ab8f142
7 changed files with 10 additions and 5 deletions

1
.gitignore vendored
View File

@@ -3,4 +3,5 @@ docs/Makefile
docs/config.* docs/config.*
docs/configure docs/configure
docs/manual.xml docs/manual.xml
docs/version.ent
/templates_c /templates_c

View File

@@ -3,3 +3,4 @@ Makefile
manual.xml manual.xml
config.* config.*
*.cache *.cache
version.ent

View File

@@ -35,7 +35,7 @@ test:
# {{{ cleanup # {{{ cleanup
clean: clean:
rm -f Makefile config.* manual.xml configure rm -f Makefile config.* manual.xml configure version.ent
rm -fr autom4te.cache rm -fr autom4te.cache
# }}} # }}}

View File

@@ -73,7 +73,7 @@ dnl {{{ language specific stuff
AC_MSG_CHECKING(for language) AC_MSG_CHECKING(for language)
PHP_BUILD_DATE=`date '+%Y-%m-%d'` BUILD_DATE=`date '+%Y-%m-%d'`
AC_ARG_WITH(lang, AC_ARG_WITH(lang,
[ --with-lang=LANG choose a language to work with],[ [ --with-lang=LANG choose a language to work with],[
@@ -89,14 +89,14 @@ AC_ARG_WITH(lang,
AC_MSG_RESULT($LANG) AC_MSG_RESULT($LANG)
fi fi
PHP_BUILD_DATE=`date '+%d-%m-%Y'` BUILD_DATE=`date '+%d-%m-%Y'`
fi fi
],[ ],[
LANG=en LANG=en
AC_MSG_RESULT([en (default)]) AC_MSG_RESULT([en (default)])
]) ])
AC_SUBST(LANG) AC_SUBST(LANG)
AC_SUBST(PHP_BUILD_DATE) AC_SUBST(BUILD_DATE)
dnl }}} dnl }}}

View File

@@ -8,11 +8,12 @@
<firstname>Andrei</firstname><surname>Zmievski &lt;andrei@php.net&gt;</surname> <firstname>Andrei</firstname><surname>Zmievski &lt;andrei@php.net&gt;</surname>
</author> </author>
</authorgroup> </authorgroup>
<edition>Version 2.0</edition> <pubdate>&build-date;</pubdate>
<copyright> <copyright>
<year>2001</year> <year>2001</year>
<year>2002</year> <year>2002</year>
<year>2003</year> <year>2003</year>
<year>2004</year>
<holder>ispi of Lincoln, Inc.</holder> <holder>ispi of Lincoln, Inc.</holder>
</copyright> </copyright>
</bookinfo> </bookinfo>

View File

@@ -1,5 +1,6 @@
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"./dtds/dbxml-4.1.2/docbookx.dtd" [ "./dtds/dbxml-4.1.2/docbookx.dtd" [
<!ENTITY build.version SYSTEM "version.ent">
<!ENTITY bookinfo SYSTEM "@LANG@/bookinfo.xml"> <!ENTITY bookinfo SYSTEM "@LANG@/bookinfo.xml">
<!ENTITY preface SYSTEM "@LANG@/preface.xml"> <!ENTITY preface SYSTEM "@LANG@/preface.xml">
<!ENTITY getting.started SYSTEM "@LANG@/getting-started.xml"> <!ENTITY getting.started SYSTEM "@LANG@/getting-started.xml">

1
docs/version.ent.in Executable file
View File

@@ -0,0 +1 @@
<!ENTITY build-date "@BUILD_DATE@">