index/tools/update-version

12 lines
285 B
PHP
Executable file

#!/usr/bin/env php
<?php
// Updates the VERSION file (prerelease stage only, remove this when 1.0.0)
date_default_timezone_set('utc');
$version = gmdate('0.ym.jHi');
echo 'Updating VERSION file to ' . $version . PHP_EOL;
file_put_contents(__DIR__ . '/../VERSION', "{$version}\n");