+/* Copyright (c) 2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
package org.simgrid;
import java.io.FileOutputStream;
String os = System.getProperty("os.name");
String arch = System.getProperty("os.arch");
- if (os.toLowerCase().startsWith("^win"))
- os = "Windows";
- else if (os.contains("OS X"))
- os = "Darwin";
-
if (arch.matches("^i[3-6]86$"))
arch = "x86";
else if (arch.equalsIgnoreCase("amd64"))
arch = "x86_64";
+ if (os.toLowerCase().startsWith("^win")){
+ os = "Windows";
+ arch = "x86";
+ }else if (os.contains("OS X"))
+ os = "Darwin";
+
os = os.replace(' ', '_');
arch = arch.replace(' ', '_');