Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added simple build system to pave way for more complex features
- Loading branch information
Starbeamrainbowlabs
committed
Dec 25, 2014
1 parent
e865e36
commit 3cab765
Showing
2 changed files
with
709 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
header("content-type: text/plain"); | ||
echo("Checking for existing build...."); | ||
if(file_exists("index.php")) | ||
exit("fail!\nA build already exists in this directory.\nPlease delete it and then run this script again."); | ||
|
||
echo("pass - no other builds were found.\n"); | ||
|
||
echo("Reading core.php..."); | ||
$build = file_get_contents("core.php"); | ||
echo("done\n"); | ||
|
||
echo("Writing build...."); | ||
file_put_contents("index.php", $build); | ||
echo("done!\n*** Build Completed ***\n"); |
Oops, something went wrong.