Added support for phar metadata

This commit is contained in:
noccy committed 2017-02-12 02:32:17 +01:00
1 parent 7ccdb99836
commit 4873ffdf02
9 files changed
+125 -18

No files matched your search

+12
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());