11 lines
185 B
PHP
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";
|