Commit cc179882 authored by Starbeamrainbowlabs's avatar Starbeamrainbowlabs

Update example build script

parent 617fcdb5
#!/usr/bin/env bash
# Make sure the current directory is the location of this script to simplify matters
cd "$(dirname $(readlink -f $0))";
cd "$(dirname "$(readlink -f "$0")")";
################
### Settings ###
################
......@@ -48,7 +48,7 @@ fi
###############################################################################
function task_setup {
task_setup() {
task_begin "Setting up";
check_command git true;
......@@ -67,7 +67,7 @@ function task_setup {
task_end 0;
}
function task_testing {
task_testing() {
task_begin "Task A";
check_command msbuild true optional;
......@@ -85,7 +85,7 @@ function task_testing {
task_end $?;
}
function task_dev-server {
task_dev-server() {
task_begin "Starting development server";
php -S [::1]:40482 -t "${build_output_folder}" &
exit_code=$?;
......@@ -94,7 +94,7 @@ function task_dev-server {
sleep 1;
}
function task_dev-server-stop {
task_dev-server-stop() {
task_begin "Stopping development server";
kill "$(cat /tmp/micro-lantern-dev-server.pid)";
......@@ -103,7 +103,7 @@ function task_dev-server-stop {
task_end $?;
}
function task_main {
task_main() {
run_task js;
task_begin "Copying html";
......@@ -115,7 +115,7 @@ function task_main {
task_end $?;
}
function task_js {
task_js() {
task_begin "Validating scripts";
scripts/validate.sh
......@@ -133,7 +133,7 @@ function task_js {
fi
}
function task_sprites {
task_sprites() {
# Build SpritePacker if required
if [ ! -f "./tools/SpritePacker/SpritePacker-CLI/bin/Debug/SpritePackerCLI.exe" ]; then
task_begin "Building SpritePacker";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment