abort($dir,"Making new tar archive failed!\n")if($pec);
# remove temporary directory
chdir"..";
`rm -rf $dir/`;
chdir($WD)orprint"$! Unable to move up one dir\n";
my$cwd=getcwd();
print"current dir is $cwd\n"if$opt_verbose;
print"deleting temp dir $dir\n"if$opt_verbose;
if(-d$dir){
system("rm -rf $dir")orprint"$! Unable to delete $dir!\n";
}
}
exit(0);
}
...
...
@@ -138,7 +163,7 @@ sub fix_usage_copyright
foreachmy$Cfile(@Cfiles)
{
chop$Cfile;
`replace "This is free software," "This is commercial software," "and you are welcome to modify and redistribute it under the GPL license" "please see the file MySQLEULA.txt for details" -- $Cfile`;
`replace "This is free software," "This is commercial software," "and you are welcome to modify and redistribute it under the GPL license" "please see the file MySQLEULA.txt for details" -- "$Cfile"`if-f$Cfile;