abort($dir,"Making new tar archive failed!\n")if($pec);
abort($dir,"Making new tar archive failed!\n")if($pec);
# remove temporary directory
# remove temporary directory
chdir"..";
chdir($WD)orprint"$! Unable to move up one dir\n";
`rm -rf $dir/`;
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);
exit(0);
}
}
...
@@ -138,7 +163,7 @@ sub fix_usage_copyright
...
@@ -138,7 +163,7 @@ sub fix_usage_copyright
foreachmy$Cfile(@Cfiles)
foreachmy$Cfile(@Cfiles)
{
{
chop$Cfile;
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;