diff --git a/Makefile b/Makefile index f64a22f1..6f3722fb 100755 --- a/Makefile +++ b/Makefile @@ -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 + # mv inc/always.php.new inc/always.php + clean: rm -f built-docs -find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..d29cb6e9 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.8.0~rc2 diff --git a/inc/always.php b/inc/always.php.in similarity index 98% rename from inc/always.php rename to inc/always.php.in index 3db051ed..dca88913 100644 --- a/inc/always.php +++ b/inc/always.php.in @@ -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];