Added support for phar metadata

This commit is contained in:
2017-02-12 02:32:17 +01:00
parent 7ccdb99836
commit 4873ffdf02
9 changed files with 125 additions and 18 deletions

12
props.php Normal file
View File

@ -0,0 +1,12 @@
<?php
function app_version() {
$ver = exec("git describe --tags");
$ver = explode("-",$ver);
if (count($ver)>1) {
$ver = array_slice($ver,0,2);
}
return join(".",$ver);
}
printf("%s=%s\n", "APP_VERSION", app_version());