index/tools/update-version.php

11 lines
264 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 = date('0.ym.jHi');
echo 'Updating VERSION file to ' . $version . PHP_EOL;
file_put_contents(__DIR__ . '/../VERSION', "{$version}\n");