php-hotfix/build/gitprops.php
2017-02-01 03:59:36 +01:00

11 lines
185 B
PHP

<?php
$git = trim(exec("git describe --tags"));
$git = explode("-",$git);
if (count($git)>1) {
$git = array_slice($git,0,2);
}
$git = join(".",$git);
echo "APP_VERSION={$git}\n";