summaryrefslogtreecommitdiff
path: root/build-aux/ar-lib
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2025-11-22 14:50:11 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-11-22 14:50:11 +0100
commit80101a458f40cc35f39e890baba1a891a83009e7 (patch)
treefe10b6cb9309bef50e7458c5c203905b43529d24 /build-aux/ar-lib
parentf6709441cfabc7240dba76be79200aadcb6c037d (diff)
parent2e314136ed58b6860c667e379bef22190fe84aa2 (diff)
Update upstream source from tag 'upstream/5.2'
Update to upstream version '5.2' with Debian dir e7bb6e760b18c46422e9b351ee95d4d043b9cfac
Diffstat (limited to 'build-aux/ar-lib')
-rwxr-xr-xbuild-aux/ar-lib23
1 files changed, 17 insertions, 6 deletions
diff --git a/build-aux/ar-lib b/build-aux/ar-lib
index 1521987..d0a7b5c 100755
--- a/build-aux/ar-lib
+++ b/build-aux/ar-lib
@@ -2,9 +2,9 @@
# Wrapper for Microsoft lib.exe
me=ar-lib
-scriptversion=2024-06-19.01; # UTC
+scriptversion=2025-02-03.05; # UTC
-# Copyright (C) 2010-2024 Free Software Foundation, Inc.
+# Copyright (C) 2010-2025 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# This program is free software; you can redistribute it and/or modify
@@ -51,9 +51,20 @@ func_file_conv ()
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
- file_conv=mingw
+ if test -n "$MSYSTEM" && (cygpath --version) >/dev/null 2>&1; then
+ # MSYS2 environment.
+ file_conv=cygwin
+ else
+ # Original MinGW environment.
+ file_conv=mingw
+ fi
;;
- CYGWIN* | MSYS*)
+ MSYS*)
+ # Old MSYS environment, or MSYS2 with 32-bit MSYS2 shell.
+ file_conv=cygwin
+ ;;
+ CYGWIN*)
+ # Cygwin environment.
file_conv=cygwin
;;
*)
@@ -65,8 +76,8 @@ func_file_conv ()
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
- cygwin | msys)
- file=`cygpath -m "$file" || echo "$file"`
+ cygwin)
+ file=`cygpath -w "$file" || echo "$file"`
;;
wine)
file=`winepath -w "$file" || echo "$file"`