index/tools/update-version

12 lines
285 B
Text
Raw Permalink Normal View History

#!/usr/bin/env php
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");