From 2eac27a43913848edfa94fbcd8eb0a2dbaad3151 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 4 Apr 2015 19:03:14 +1300 Subject: [PATCH] rebuild.sh: convert to cygwin --- rebuild.cmd | 18 ------------------ rebuild.sh | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) delete mode 100644 rebuild.cmd create mode 100644 rebuild.sh diff --git a/rebuild.cmd b/rebuild.cmd deleted file mode 100644 index 5b20511..0000000 --- a/rebuild.cmd +++ /dev/null @@ -1,18 +0,0 @@ -@echo off - -echo Cleaning target directory... -echo. -rmdir /s /q wwwroot -mkdir wwwroot -mkdir wwwroot\srv -copy static\* wwwroot - -echo Building pages... -echo. -start /b php rebuild.php 4 0 -start /b php rebuild.php 4 1 -start /b php rebuild.php 4 2 -start /b php rebuild.php 4 3 -start /b php rebuild.php 4 4 - -pause \ No newline at end of file diff --git a/rebuild.sh b/rebuild.sh new file mode 100644 index 0000000..abbe305 --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -eu +PHP=/cygdrive/c/bin/php/php.exe + +echo Cleaning target directory... + +rm -r wwwroot +mkdir -p wwwroot/srv +cp static/* wwwroot + +echo Building pages... + +for i in $(seq 0 4) ; do + $PHP rebuild.php 4 "$i" & +done +wait + +read -p "Press any key to continue..."