Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hardcode the build when compiling.
  • Loading branch information
rmccue committed Jan 16, 2012
1 parent b04cd4e commit 34ff68b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/compile.php
Expand Up @@ -58,5 +58,12 @@ function remove_header($contents)
// Strip excess whitespace
$compiled = preg_replace("#\n\n\n+#", "\n\n", $compiled);

// Hardcode the build
$compiled = str_replace(
"define('SIMPLEPIE_BUILD', gmdate('YmdHis', SimplePie_Misc::get_build()))",
"define('SIMPLEPIE_BUILD', '" . gmdate('YmdHis', time()) . "')",
$compiled
);

// Finally, save
file_put_contents(COMPILED, $compiled);

0 comments on commit 34ff68b

Please sign in to comment.