Welcome to mirror list, hosted at ThFree Co, Russian Federation.

buildVersionFile.php - github.com/nextcloud/updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ee4a8b07d5862efc62b2808e522eb36a53e24dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php


$currentTag = trim(shell_exec('git describe --tags'));
exec('git diff-files --quiet', $output, $returnValue);

$dirty = $returnValue === 0 ? '' : ' dirty';


$content = '<?php

namespace NC\Updater;

class Version {
	function get() {
		return \'' . $currentTag . $dirty . '\';
	}
}
';

file_put_contents('lib/Version.php', $content);