[SCM] an open source computer algebra system branch, cleanedupstream, updated. 6125e540ca6d66c307958938a9d53b245507c323

Bernhard R. Link brlink at debian.org
Tue Apr 24 15:53:03 UTC 2012


The following commit has been merged in the cleanedupstream branch:
commit c6ad4e143c2b8120d5c8b90878ad7b7f7ad65fed
Author: Hans Schoenemann <hannes at mathematik.uni-kl.de>
Date:   Fri Feb 10 15:01:12 2012 +0100

    fix: surfer for windows

diff --git a/Singular/LIB/surf.lib b/Singular/LIB/surf.lib
index a225022..ab5f025 100755
--- a/Singular/LIB/surf.lib
+++ b/Singular/LIB/surf.lib
@@ -304,8 +304,13 @@ EXAMPLE: example surfer; shows an example
       surferPath = windowsCorrection(surferPath);
       surferPath = surferPath[1..size(surferPath)-size("/surfer")];
       singularPath = windowsCorrection(singularPath);
+      int start_path=1;
+      if (singularPath[1..size("/cygdrive/c/")]=="/cygdrive/c/")
+      {
+        start_path=size("/cygdrive/c/");
+      }
       singularPath = "c:"
-         + singularPath[size("/cygdrive/c/")..size(singularPath)];
+         + singularPath[start_path..size(singularPath)];
       surf_call = "cygstart -w -d " + surferPath + " ";
       surf_call = surf_call + surferPath + "/surfer ";
       surf_call = surf_call + singularPath + "/" + lForWindows;

-- 
an open source computer algebra system



More information about the debian-science-commits mailing list