Permalink
Browse files

Removed call-time pass-by-reference attribute from function parameters.

This syntax is not supported any more by newer PHP versions.
  • Loading branch information...
starkjohann committed Nov 18, 2014
1 parent e61c612 commit 3cfa35ed98f224449e65c4060c737f094676e1a4
Showing with 37 additions and 37 deletions.
  1. +37 −37 release-building/make_release.php
@@ -147,13 +147,13 @@ function usage()
system("cp -Rp webyep-dwx \"$sDestination/\"");
chdir("$sDestination/webyep-dwx") or fatal(__LINE__);
echo "Running babelfish";
passthru("'$sBabelfish'", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("'$sBabelfish'", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . "\nBabelfish proved that God doesn't exist.\n" . COLOR_END;
echo "Removing unneeded languages from documentation...";
chdir("$sDestination/en/webyep-dwx/Shared/WebYep/Help") or fatal(__LINE__);
system("rm -rf deutsch", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -rf deutsch", $iRet); if ($iRet != 0) fatal(__LINE__);
chdir("$sDestination/de/webyep-dwx/Shared/WebYep/Help") or fatal(__LINE__);
system("rm -rf english", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -rf english", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "----------------------------------------------------------\n";
@@ -191,10 +191,10 @@ function usage()
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "Copying german version...";
system("cp -R -p webyep-system de/", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system de/", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "Copying english version...";
system("cp -R -p webyep-system en/", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system en/", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
chdir("$sDestination/en/webyep-system") or fatal(__LINE__);
echo "Setting up english version...";
@@ -213,10 +213,10 @@ function usage()
mkdir($sRelFolder) or fatal(__LINE__);
copy("$sourceRootDir/release-building/LiesMich_DW.html", "$sRelFolder/LiesMich.html") or fatal(__LINE__);
copy("$sourceRootDir/release-building/WebYep Lizenzbedingungen.html", "$sRelFolder/WebYep Lizenzbedingungen.html") or fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", $iRet); if ($iRet != 0) fatal(__LINE__);
rename("webyep-dwx/webyep.mxp", "$sRelFolder/webyep.mxp") or fatal(__LINE__);
passthru("$sZIP -r$V {$sRelFolder}_de.zip $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V {$sRelFolder}_de.zip $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "----------------------------------------------------------\n";
@@ -226,10 +226,10 @@ function usage()
mkdir($sRelFolder) or fatal(__LINE__);
copy("$sourceRootDir/release-building/ReadMe_DW.html", "$sRelFolder/ReadMe.html") or fatal(__LINE__);
copy("$sourceRootDir/release-building/WebYep License Agreement.html", "$sRelFolder/WebYep License Agreement.html") or fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", $iRet); if ($iRet != 0) fatal(__LINE__);
rename("webyep-dwx/webyep.mxp", "$sRelFolder/webyep.mxp") or fatal(__LINE__);
passthru("$sZIP -r$V {$sRelFolder}_en.zip $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V {$sRelFolder}_en.zip $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
}
@@ -267,18 +267,18 @@ function usage()
echo "Creating english RapidWeaver package" . ($bVerbose ? ":\n" : '...');
chdir("$sDestination/en") or fatal(__LINE__);
system("gzip -dc '$sourceRootDir/release-building/RapidWeaver_Template_en.dmg' > '$sWorkDMG'");
system("$sHdiutil attach $sWorkDMG$Q", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil attach $sWorkDMG$Q", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -p '$sourceRootDir/release-building/ReadMe_RW.html' '$sVolume/ReadMe.html'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p '$sourceRootDir/webyep-rwx/$sRWPluginBuildSubPath' '$sVolume'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system '$sVolume'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -p '$sourceRootDir/release-building/ReadMe_RW.html' '$sVolume/ReadMe.html'", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p '$sourceRootDir/webyep-rwx/$sRWPluginBuildSubPath' '$sVolume'", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system '$sVolume'", $iRet); if ($iRet != 0) fatal(__LINE__);
replaceTextInFile("$sVolume/webyep-system/config-inc.php", array('$webyep_sCharset = "";' => '$webyep_sCharset = "utf-8";'));
// copy the webloc file with system since it is a resource fork!
system("cp -p '$sourceRootDir/release-building/WebYep Documentation.html' '$sVolume/WebYep Documentation.html'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -p '$sourceRootDir/release-building/WebYep Documentation.html' '$sVolume/WebYep Documentation.html'", $iRet); if ($iRet != 0) fatal(__LINE__);
copy("$sourceRootDir/release-building/WebYep License Agreement.html", "$sVolume/WebYep License Agreement.html") or fatal(__LINE__);
system("$sHdiutil detach '$sVolume'$Q", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil convert $sWorkDMG$Q -format UDZO -o '$sReleaseDMG' ", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil detach '$sVolume'$Q", $iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil convert $sWorkDMG$Q -format UDZO -o '$sReleaseDMG' ", $iRet); if ($iRet != 0) fatal(__LINE__);
unlink($sWorkDMG);
system("rm -rf '$sourceRootDir/webyep-rwx/Build'");
echo ($bVerbose) ? '' : COLOR_GREEN . " done\n" . COLOR_END;
@@ -290,18 +290,18 @@ function usage()
echo "Creating german RapidWeaver package" . ($bVerbose ? ":\n" : '...');
chdir("$sDestination/de") or fatal(__LINE__);
system("gzip -dc '$sourceRootDir/release-building/RapidWeaver_Template_de.dmg' > '$sWorkDMG'");
system("$sHdiutil attach $sWorkDMG$Q", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil attach $sWorkDMG$Q", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -p '$sourceRootDir/release-building/LiesMich_RW.html' '$sVolume/LiesMich.html'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p '$sourceRootDir/webyep-rwx/$sRWPluginBuildSubPath' '$sVolume'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system '$sVolume'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -p '$sourceRootDir/release-building/LiesMich_RW.html' '$sVolume/LiesMich.html'", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p '$sourceRootDir/webyep-rwx/$sRWPluginBuildSubPath' '$sVolume'", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system '$sVolume'", $iRet); if ($iRet != 0) fatal(__LINE__);
replaceTextInFile("$sVolume/webyep-system/konfiguration.php", array('$webyep_sCharset = "";' => '$webyep_sCharset = "utf-8";'));
// copy the webloc file with system since it is a resource fork!
system("cp -p '$sourceRootDir/release-building/WebYep Dokumentation.html' '$sVolume/WebYep Dokumentation.html'", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -p '$sourceRootDir/release-building/WebYep Dokumentation.html' '$sVolume/WebYep Dokumentation.html'", $iRet); if ($iRet != 0) fatal(__LINE__);
copy("$sourceRootDir/release-building/WebYep Lizenzbedingungen.html", "$sVolume/WebYep Lizenzbedingungen.html") or fatal(__LINE__);
system("$sHdiutil detach '$sVolume'$Q", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil convert $sWorkDMG$Q -format UDZO -o '$sReleaseDMG' ", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil detach '$sVolume'$Q", $iRet); if ($iRet != 0) fatal(__LINE__);
system("$sHdiutil convert $sWorkDMG$Q -format UDZO -o '$sReleaseDMG' ", $iRet); if ($iRet != 0) fatal(__LINE__);
unlink($sWorkDMG);
echo ($bVerbose) ? '' : COLOR_GREEN . " done\n" . COLOR_END;
}
@@ -313,15 +313,15 @@ function usage()
echo "* english...";
chdir("$sDestination/en") or fatal(__LINE__);
$sDocuFolder = "WebYep_Documentation_$sRelease";
system("cp -R -p ../webyep-dwx/Shared/WebYep/Help/english $sDocuFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V {$sDocuFolder}_en.zip $sDocuFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p ../webyep-dwx/Shared/WebYep/Help/english $sDocuFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V {$sDocuFolder}_en.zip $sDocuFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "* german...";
chdir("$sDestination/de") or fatal(__LINE__);
$sDocuFolder = "WebYep_Dokumentation_$sRelease";
system("cp -R -p ../webyep-dwx/Shared/WebYep/Help/deutsch $sDocuFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V {$sDocuFolder}_de.zip $sDocuFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p ../webyep-dwx/Shared/WebYep/Help/deutsch $sDocuFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V {$sDocuFolder}_de.zip $sDocuFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
// Plain packages
@@ -333,10 +333,10 @@ function usage()
mkdir($sRelFolder) or fatal(__LINE__);
copy("$sourceRootDir/release-building/LiesMich_Plain.html", "$sRelFolder/LiesMich.html") or fatal(__LINE__);
copy("$sourceRootDir/release-building/WebYep Lizenzbedingungen.html", "$sRelFolder/WebYep Lizenzbedingungen.html") or fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p WebYep_Dokumentation_$sRelease $sRelFolder/WebYep_Dokumentation_$sRelease", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V WebYep_Plain_{$sRelease}_de.zip $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p WebYep_Dokumentation_$sRelease $sRelFolder/WebYep_Dokumentation_$sRelease", $iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V WebYep_Plain_{$sRelease}_de.zip $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "Creating english Plain package...";
@@ -345,10 +345,10 @@ function usage()
mkdir($sRelFolder) or fatal(__LINE__);
copy("$sourceRootDir/release-building/ReadMe_Plain.html", "$sRelFolder/ReadMe.html") or fatal(__LINE__);
copy("$sourceRootDir/release-building/WebYep License Agreement.html", "$sRelFolder/WebYep License Agreement.html") or fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p WebYep_Documentation_$sRelease $sRelFolder/WebYep_Documentation_$sRelease", &$iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V WebYep_Plain_{$sRelease}_en.zip $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", &$iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p webyep-system $sRelFolder/webyep-system", $iRet); if ($iRet != 0) fatal(__LINE__);
system("cp -R -p WebYep_Documentation_$sRelease $sRelFolder/WebYep_Documentation_$sRelease", $iRet); if ($iRet != 0) fatal(__LINE__);
passthru("$sZIP -r$V WebYep_Plain_{$sRelease}_en.zip $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
system("rm -r -f $sRelFolder", $iRet); if ($iRet != 0) fatal(__LINE__);
echo COLOR_GREEN . " done.\n" . COLOR_END;
echo "----------------------------------------------------------\n";
echo COLOR_GREEN . "Finished.\n\n" . COLOR_END;

0 comments on commit 3cfa35e

Please sign in to comment.