Added 'r' for revision, and changed shebang

This commit is contained in:
Michiel Sikma
2014-12-23 14:46:32 +01:00
parent f51f26162a
commit 607756d402

View File

@@ -1,4 +1,4 @@
#!/usr/bin/php
#!/usr/bin/env php
<?php
// PokéSprite
@@ -78,7 +78,7 @@ $cl_settings = $usage->get_user_settings();
// Check the current revision number for user feedback and for
// inclusion in the output files.
$revision = trim(shell_exec('git rev-list HEAD --count 2> /dev/null'));
$revision = $revision ? $revision : '[unknown]';
$revision = $revision ? 'r'.$revision : '[unknown]';
$cl_settings['revision'] = $revision;
if ($usage->needs_usage) {