File: fix_ffmaster_path.patch

package info (click to toggle)
freefem%2B%2B 4.11%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,196 kB
  • sloc: cpp: 225,276; ansic: 29,162; makefile: 4,046; sh: 2,422; fortran: 1,115; perl: 865; pascal: 452; awk: 295; f90: 32; exp: 16
file content (15 lines) | stat: -rw-r--r-- 688 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Francois Mazen <francois@mzf.fr>
Description: Fix executable path and edp file path for linux.
Forwarded: https://github.com/FreeFem/FreeFem-sources/pull/190

--- a/plugin/seq/ffmaster.c
+++ b/plugin/seq/ffmaster.c
@@ -95,7 +95,7 @@
                 "..\\examples\\plugin\\ffslave.edp",
                 "-nw", "-ns", "-v", ff, NULL );
 #else
-  sprintf(ff, "FreeFem++.exe C:\\Users\\t1m\\FreeFem++\\examples\\plugin\\ffslave.edp -nw -ns -v %d&", debug);
+  sprintf(ff, "FreeFem++ /usr/share/doc/freefem++/examples/plugin/ffslave.edp -nw -ns -v %d&", debug);
   ret = system(ff);    // Lauch FF++ in batch no graphique
 #endif
   if (ret == -1) printf("system function error\n");