The inc/always.php file is now built with the version number in it.

This commit is contained in:
Andrew McMillan 2007-05-29 23:01:04 +12:00
parent 122aa962da
commit 64e351af56
3 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,10 @@ built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php
phpdoc -c docs/api/phpdoc.ini
touch built-docs
inc/always.php: VERSION inc/always.php.in
sed -e "/^ *.c->version_string *= *'[^']*' *;/ s/^ *.c->version_string *= *'[^']*' *;/\$$c->version_string = '`head -n1 VERSION`';/" <inc/always.php.in >inc/always.php
# mv inc/always.php.new inc/always.php
clean:
rm -f built-docs
-find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete

1
VERSION Normal file
View File

@ -0,0 +1 @@
0.8.0~rc2

View File

@ -77,7 +77,7 @@ awl_set_locale($c->default_locale);
*
*/
$c->code_version = 0;
$c->version_string = '0.8.0~rc2'; // The actual version # is replaced into that during the build /release process
$c->version_string = '0.7.0~rc3'; // The actual version # is replaced into that during the build /release process
if ( isset($c->version_string) && preg_match( '/(\d+)\.(\d+)\.(\d+)(.*)/', $c->version_string, $matches) ) {
$c->code_major = $matches[1];
$c->code_minor = $matches[1];