php-hotfix/build/gitprops.php

11 lines
185 B
PHP
Raw Normal View History

2017-02-01 02:59:36 +00:00
<?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";