10 lines
206 B
PHP
10 lines
206 B
PHP
<?php
|
|
|
|
$gitver = exec("git describe --tag");
|
|
if (strpos($gitver,"-")!==false) {
|
|
$gitver = explode("-",$gitver);
|
|
$gitver = join(".",array_slice($gitver,0,2));
|
|
}
|
|
|
|
printf("APP_VERSION=%s\n", $gitver);
|