diff src/org/tmatesoft/hg/internal/FileSystemHelper.java @ 713:661e77dc88ba tip

Mac support: respect Mac alternatives of command-line arguments for common unix tools
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sun, 03 Aug 2014 18:09:00 +0200
parents 4e6179bde4fc
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/FileSystemHelper.java	Sun Aug 03 18:04:13 2014 +0200
+++ b/src/org/tmatesoft/hg/internal/FileSystemHelper.java	Sun Aug 03 18:09:00 2014 +0200
@@ -46,6 +46,10 @@
 			linkCmd = Arrays.asList("mklink", "%1", "%2");
 			chmodCmd = Collections.emptyList();
 			statCmd = Collections.emptyList();
+		} else if (Internals.runningOnMac()) {
+			linkCmd = Arrays.asList("/bin/ln", "-s", "%2", "%1");
+			chmodCmd = Arrays.asList("/bin/chmod", "+x", "%1");
+			statCmd = Arrays.asList("stat", "-f", "%p", "%1");
 		} else {
 			linkCmd = Arrays.asList("/bin/ln", "-s", "%2", "%1");
 			chmodCmd = Arrays.asList("/bin/chmod", "+x", "%1");