Commit 2df05889 authored by unknown's avatar unknown
Browse files

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
parent eefb240b
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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);
}