index/tools/update-version.php

10 lines
264 B
PHP

<?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");