rebuild.sh: convert to cygwin
This commit is contained in:
parent
bbbfba2e8f
commit
2eac27a439
18
rebuild.cmd
18
rebuild.cmd
@ -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
19
rebuild.sh
Normal 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..."
|
Reference in New Issue
Block a user