index/tools/update-version.php

11 lines
266 B
PHP
Raw Normal View History

2022-09-13 13:13:11 +00:00
<?php
// Updates the VERSION file (prerelease stage only, remove this when 1.0.0)
date_default_timezone_set('utc');
$version = gmdate('0.ym.jHi');
2022-09-13 13:13:11 +00:00
echo 'Updating VERSION file to ' . $version . PHP_EOL;
file_put_contents(__DIR__ . '/../VERSION', "{$version}\n");