diff --git a/build.php b/build.php index 091e17c18a0e0811ddbb13bfc1f23f764e474141..334899dbf7515ea08c6f168d52f6921ccc52965f 100755 --- a/build.php +++ b/build.php @@ -27,14 +27,15 @@ _mkdir($dirPackages); _h1("Check target file"); if(file_exists($OUTFILE)){ - echo "INFO: output file '$OUTFILE' already exists.\n"; $ts_in=filemtime($INFILE); $ts_out=filemtime($OUTFILE); if($ts_in>$ts_out){ - echo "INFO: Source file '$INFILE' is newer than '$OUTFILE'. Compiling changes...\n"; + echo "✅ INFO: Source file \"$INFILE\" is newer than \"$OUTFILE\". Compiling changes...\n"; } else { - echo "INFO: Source is unchanged since last build..\n"; + echo "🔹 INFO: Source is unchanged since last build... rebuilding it anyway.\n"; } +} else { + echo "✅ INFO: Target \"$OUTFILE\" does not exist yet.\n"; } // ---------------------------------------------------------------------- @@ -56,8 +57,8 @@ _h1("Compile"); _chdir("$selfdir/$dirBuild"); _exec("$SPC \ micro:combine \ - '$TMPFILE' \ - -O '$OUTFILE'"); + \"$TMPFILE\" \ + -O \"$OUTFILE\""); // if(unlink($TMPFILE)){ // echo "Cleanup: $TMPFILE was deleted\n"; @@ -67,15 +68,15 @@ _exec("$SPC \ _h1("Test generated binary"); -_exec("file '$OUTFILE'"); -_exec("'$OUTFILE' --ini=../src/simple.ini"); +_exec("file \"$OUTFILE\""); +_exec("\"$OUTFILE\" --ini=../src/simple.ini"); _h1("Write architecture specific binary"); -_exec("cp '$OUTFILE' '$OUTFILE2'"); +_exec("cp \"$OUTFILE\" '$OUTFILE2'"); // ---------------------------------------------------------------------- -_h1("Done"); +_h1("Done: Build was successful."); // ---------------------------------------------------------------------- diff --git a/inc_functions.php b/inc_functions.php index 6b2db4de5aabaadc84cd9111aed57869e78dd158..2c0dc83ab111c41db1e1800a2d95f52ae3bc2d1e 100644 --- a/inc_functions.php +++ b/inc_functions.php @@ -91,7 +91,7 @@ function _mkdir(string $sMyDir): void _ok(); echo "\n"; } else { - _skip("mkdir: already exists: '$sMyDir"); + _skip("mkdir: already exists: '$sMyDir'"); } } diff --git a/installer.php b/installer.php index 8095299c6262d5462f4436e3859ae1f2a3a6139e..b4ba2f2df8a822282435267f0b12e78721cb6148 100755 --- a/installer.php +++ b/installer.php @@ -144,13 +144,13 @@ if(file_exists($doneBuild)){ if ($bDoBild){ _exec("$SPC --no-interaction doctor"); - _exec("$SPC download --no-interaction --with-php=$php_version --for-extensions '$php_libs'"); + _exec("$SPC download --no-interaction --with-php=$php_version --for-extensions \"$php_libs\""); echo "💡 Hint: this can take 2 minutes ...\n"; - _exec("$SPC build --no-interaction --build-micro '$php_libs'"); + _exec("$SPC build --no-interaction --build-micro \"$php_libs\""); file_put_contents("$doneBuild", date("Y-m-d H:i:s") . "\n$sDoneData\n"); } else { - _skip("Micro already built - php $php_version - extensions '$php_libs'"); + _skip("Micro already built - php $php_version - extensions \"$php_libs\""); } _h1("Done.");