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

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


The following commit has been merged in the cleanedupstream branch:
commit d1b3de17cfde2d59207169c5255b143f2ca6fd6c
Author: Hans Schoenemann <hannes at mathematik.uni-kl.de>
Date:   Mon Feb 13 15:10:24 2012 +0100

    fix: windows path for surfer

diff --git a/Singular/LIB/surf.lib b/Singular/LIB/surf.lib
index ab5f025..0a851d7 100755
--- a/Singular/LIB/surf.lib
+++ b/Singular/LIB/surf.lib
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-version="$Id$";
+version="$Id: surf.lib 14246 2011-05-26 11:55:32Z hannes $";
 category="Visualization";
 info="
 LIBRARY: surf.lib    Procedures for Graphics with Surf
@@ -304,13 +304,8 @@ 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[start_path..size(singularPath)];
+      link ll = "|: cygpath -w " + singularPath;
+      singularPath = "'\""+read(ll)+"\"'"; close(ll);
       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