20 lines
271 B
Bash
20 lines
271 B
Bash
|
#!/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..."
|