This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
// Get the arguments. If there are not two, then print usage info. | |
if (count($argv) != 3) { | |
$scriptname = basename($argv[0]); | |
print("Usage: $scriptname <date> <patchfile>" . PHP_EOL); | |
print('where <date> is any date understood by git' . PHP_EOL); | |
print('and <patchfile> applied cleanly on <date>, not today.' . PHP_EOL); | |
print("Example: $scriptname 2013/05/17 foo.patch" . PHP_EOL); |