]> Savannah Git Hosting - gnulib.git/commitdiff
csharpexec-script: Improve Cygwin support.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Oct 2024 18:14:04 +0000 (20:14 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 16 Oct 2024 12:03:40 +0000 (14:03 +0200)
* build-aux/csharpexec.sh.in: Convert the first 'clix' argument to
native Windows syntax.

ChangeLog
build-aux/csharpexec.sh.in

index 152ace80c43de0e7b29cc76978d431409ed85f2a..2d12dd3edf559638bafc70d37654d006776c78c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-10-07  Bruno Haible  <bruno@clisp.org>
+
+       csharpexec-script: Improve Cygwin support.
+       * build-aux/csharpexec.sh.in: Convert the first 'clix' argument to
+       native Windows syntax.
+
 2024-10-07  Bruno Haible  <bruno@clisp.org>
 
        cygpath: New module.
index 2ef677c10aa39b8f029aee51a9afb59751746a2f..83d60ca870ebb07a7be50ab993ba5741db4a5670 100644 (file)
@@ -79,8 +79,16 @@ else
       @CLIX_PATH_VAR@="$CONF_CLIX_PATH"
     fi
     export @CLIX_PATH_VAR@
-    test -z "$CSHARP_VERBOSE" || echo clix "$@"
-    exec clix "$@"
+    shift
+    # On Windows, assume that 'clix' is a native Windows program,
+    # not a Cygwin program.
+    case "@build_os@" in
+      cygwin*)
+        prog=`cygpath -w "$prog"`
+        ;;
+    esac
+    test -z "$CSHARP_VERBOSE" || echo clix "$prog" "$@"
+    exec clix "$prog" "$@"
   else
     echo 'C# virtual machine not found, try installing mono, then reconfigure' 1>&2
     exit 1