Skip to content

Commit

Permalink
* gacutil.cs: We need to overwrite existing libraries if they
Browse files Browse the repository at this point in the history
	already exist in the package directory on windows. Also made the
	code somewhat readable with 80 cols.

svn path=/trunk/mcs/; revision=26705
  • Loading branch information
Jackson Harper committed May 4, 2004
1 parent 9d01259 commit 278eaf8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions mcs/tools/gacutil/ChangeLog
@@ -1,3 +1,9 @@
2004-05-04 Jackson Harper <jackson@ximian.com>

* gacutil.cs: We need to overwrite existing libraries if they
already exist in the package directory on windows. Also made the
code somewhat readable with 80 cols.

2004-05-03 Todd Berman <tberman@sevenl.net>

* gacutil.cs: potential fix for miguel.
Expand Down
7 changes: 5 additions & 2 deletions mcs/tools/gacutil/gacutil.cs
Expand Up @@ -325,14 +325,17 @@ public int InstallAssembly (string[] args)

File.Copy (args[0], fullPath + an.Name + ".dll", force);
if (package_name != String.Empty) {
string ref_file = libdir + package_name +
Path.DirectorySeparatorChar + Path.GetFileName (args[0]);
if (Path.DirectorySeparatorChar == '/') {
try {
Directory.CreateDirectory (libdir + package_name);
} catch {}

symlink (linkPath + an.Name + ".dll", libdir + package_name + Path.DirectorySeparatorChar + Path.GetFileName (args[0]));
symlink (linkPath + an.Name + ".dll", ref_file);
} else {
File.Copy (args[0], libdir + package_name + Path.DirectorySeparatorChar + Path.GetFileName (args[0]));

File.Copy (args[0], ref_file, true);
}
Console.WriteLine ("Package exported to: " + libdir + package_name);
}
Expand Down

0 comments on commit 278eaf8

Please sign in to comment.