Update "Source code" and build script to work with php7 (default on win10 linux subsystem ubuntu)

This commit is contained in:
Rajko Stojadinovic 2017-10-12 23:23:48 +02:00
parent 070bf8e649
commit 97b0d9ce27
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<?
<?php
$width = $argv[1];
$height = $argv[2];

View File

@ -1,4 +1,4 @@
<?
<?php
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$halfWidth = $fullWidth / 2;

View File

@ -29,7 +29,7 @@ build_dir () {
filename=`basename $f`
outName="$dstDir/$filename"
echo "Building $f to $outName with params ${rest[@]}"
php5 "$f" ${rest[*]} > "$outName"
php "$f" ${rest[*]} > "$outName"
if [ $? -ne 0 ]; then
rm "$outName"
fi