rebuild.sh: convert to cygwin

This commit is contained in:
mappu 2015-04-04 19:03:14 +13:00
parent bbbfba2e8f
commit 2eac27a439
2 changed files with 19 additions and 18 deletions

View File

@ -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

19
rebuild.sh Normal file
View File

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