php-vfxapply/props.php

10 lines
206 B
PHP
Raw Normal View History

2017-02-12 15:19:07 +00:00
<?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);