Commit 3bf0b972 authored by patg@krsna.patg.net's avatar patg@krsna.patg.net

mysql-copyright:

  Small fixes to handle packaging of windows src (commercial) file
parent 30bed1bb
...@@ -131,13 +131,17 @@ sub main ...@@ -131,13 +131,17 @@ sub main
rename($destdir, $newdistname); rename($destdir, $newdistname);
# tar the new distribution # tar the new distribution
`tar cz -f $opt_target/$newdistname.tar.gz $newdistname`; `tar cz -f $WD/$newdistname.tar.gz $newdistname`;
$pec= $? >> 8; $pec= $? >> 8;
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) or print "$! Unable to move up one dir\n";
`rm -rf $dir/`; print "deleting temp dir $dir\n";
if (-d "$WD/$dir") {
system("rm -rf $WD/$dir") or print "$! Unable to delete $WD/$dir!\n";
}
} }
exit(0); exit(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment