diff src/org/tmatesoft/hg/internal/Internals.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 a62079bc422b
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Internals.java	Sun Aug 03 18:04:13 2014 +0200
+++ b/src/org/tmatesoft/hg/internal/Internals.java	Sun Aug 03 18:09:00 2014 +0200
@@ -306,6 +306,9 @@
 	public static boolean runningOnWindows() {
 		return System.getProperty("os.name").indexOf("Windows") != -1;
 	}
+	public static boolean runningOnMac() {
+		return System.getProperty("os.name").indexOf("Mac") != -1;
+	}
 	
 	/**
 	 * @param fsHint optional hint pointing to filesystem of interest (generally, it's possible to mount