diff options
author | unknown <patg@krsna.patg.net> | 2004-06-11 00:40:56 -0700 |
---|---|---|
committer | unknown <patg@krsna.patg.net> | 2004-06-11 00:40:56 -0700 |
commit | 2df0588981c68f2e1fc7b1a826b06c395fcd9f12 (patch) | |
tree | f7b1136a8420a3328a6cd0046a735774f6eb28f8 /Build-tools | |
parent | eefb240b6da0db2023ad3c86f5be8ed338911a04 (diff) | |
download | mariadb-git-2df0588981c68f2e1fc7b1a826b06c395fcd9f12.tar.gz |
mysql-copyright:
Small fixes to handle packaging of windows src (commercial) file
Build-tools/mysql-copyright:
Small fixes to handle packaging of windows src (commercial) file
Diffstat (limited to 'Build-tools')
-rwxr-xr-x | Build-tools/mysql-copyright | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Build-tools/mysql-copyright b/Build-tools/mysql-copyright index 4c40908e7ed..dbe494b8aab 100755 --- a/Build-tools/mysql-copyright +++ b/Build-tools/mysql-copyright @@ -131,13 +131,17 @@ sub main rename($destdir, $newdistname); # tar the new distribution - `tar cz -f $opt_target/$newdistname.tar.gz $newdistname`; + `tar cz -f $WD/$newdistname.tar.gz $newdistname`; $pec= $? >> 8; abort($dir, "Making new tar archive failed!\n") if ($pec); # remove temporary directory - chdir ".."; - `rm -rf $dir/`; + chdir($WD) or print "$! Unable to move up one dir\n"; + 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); } |