visions = \",lite,\";' > visions.php\n"; $command .= "echo $liteVersionAB > $dirName/VERSION\n"; $command .= "zip -r ../../$packPrefix.{$liteVersionAB}.php{$phpVersion}.zip $dirName\n"; } $command .= "rm -rf $dirName/ biz/ max/\n"; file_put_contents($shellName, $command); $shellList[] = $shellName; } } /* Execute the shells. */ $lines = ''; foreach($shellList as $shellName) { echo $shellName . "\n"; $lines .= "sh $shellName &\n"; } $lines .= "wait\necho 'Zip packages has done.'"; file_put_contents('zip.sh', $lines);