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..."