freebsd-ports/cad/astk-serveur/files/patch-asrun_system__command.py
Thierry Thomas e22be4275b Upgrade - endly! - to Code_Aster 13.4.0-3.
Notes:

- I have (not yet) succeeded to enable MFront in this version;

- it uses math/mumps-edf, repocopied from math/mumps;

- cad/scotch is now taken out of the aster tarball;

- french/eficas is no more used: to be replaced by "aster-study" in Salome_Meca
	(the port cad/salome should be resurrected!)
2017-11-14 18:29:22 +00:00

23 lines
819 B
Python

--- asrun/system_command.py.orig 2017-07-13 07:40:52 UTC
+++ asrun/system_command.py
@@ -21,9 +21,9 @@
This module defines syntaxes to run command lines.
"""
-from asrun.common.sysutils import on_linux
+from asrun.common.sysutils import on_windows
-if on_linux():
+if not on_windows():
COMMAND = {
'foreground' : '( %(cmd)s ) > /dev/null 2>&1',
'background' : '( %(cmd)s ) > /dev/null 2>&1 &',
@@ -33,7 +33,7 @@ if on_linux():
'not_follow_separ_stderr' : '( %(cmd)s ) > %(output)s 2> %(error)s',
'rm_file' : '\\rm -f %(args)s',
'rm_dirs' : '\\rm -rf %(args)s',
- 'copy' : 'cp -L -r %(args)s',
+ 'copy' : 'cp -L -R %(args)s',
'ping' : 'ping -c 1 -W %(timeout)s %(host)s',
'shell_cmd' : "bash -c",
'file' : "file %(args)s",