Permalink
Browse files

Hardcode the build when compiling.

  • Loading branch information...
rmccue committed Jan 16, 2012
1 parent b04cd4e commit 34ff68b4f57535b58716f8e831ea1046006d2d4a
Showing with 7 additions and 0 deletions.
  1. +7 −0 build/compile.php
View
@@ -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.