mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
The inc/always.php file is now built with the version number in it.
This commit is contained in:
parent
122aa962da
commit
64e351af56
4
Makefile
4
Makefile
@ -9,6 +9,10 @@ built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php
|
|||||||
phpdoc -c docs/api/phpdoc.ini
|
phpdoc -c docs/api/phpdoc.ini
|
||||||
touch built-docs
|
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:
|
clean:
|
||||||
rm -f built-docs
|
rm -f built-docs
|
||||||
-find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
|
-find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
|
||||||
|
|||||||
@ -77,7 +77,7 @@ awl_set_locale($c->default_locale);
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$c->code_version = 0;
|
$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) ) {
|
if ( isset($c->version_string) && preg_match( '/(\d+)\.(\d+)\.(\d+)(.*)/', $c->version_string, $matches) ) {
|
||||||
$c->code_major = $matches[1];
|
$c->code_major = $matches[1];
|
||||||
$c->code_minor = $matches[1];
|
$c->code_minor = $matches[1];
|
||||||
Loading…
x
Reference in New Issue
Block a user