Update build script

This commit is contained in:
Pierre 2018-04-29 21:00:24 +02:00
parent 4f9946063d
commit 3221cf2732

14
build
View File

@ -10,6 +10,13 @@
//Defines some utilities //Defines some utilities
/**
* Display a message on the screen
*
* @param string $message The message to display on the screen
* @param bool $new_section Specify whether the message refers to a
* new build section or not
*/
function notice(string $message, bool $new_section = false) { function notice(string $message, bool $new_section = false) {
echo ($new_section ? "\n\n" : "").$message,"\n"; echo ($new_section ? "\n\n" : "").$message,"\n";
} }
@ -192,4 +199,9 @@ RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L] RewriteRule . index.php [L]
</IfModule> </IfModule>
'; ';
file_put_contents($output.".htaccess", $htaccess); file_put_contents($output.".htaccess", $htaccess);
//Done
notice("Done.", TRUE);