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/configure
docs/manual.xml
docs/version.ent
/templates_c

View File

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

View File

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

View File

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

View File

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

View File

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