[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] install-sh: Handle .exe extensions, for Cygwin portability
From: |
Julien ÉLIE |
Subject: |
[PATCH] install-sh: Handle .exe extensions, for Cygwin portability |
Date: |
Sat, 17 Mar 2018 15:16:51 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi,
You'll find below a suggestion of patch we've been using since 2002 with
INN (a news server).
https://inn.eyrie.org/trac/changeset/5703
--
Julien ÉLIE
Make install-sh properly handle .exe extensions.
Path from Greg Andruk.
* lib/install-sh: Handle .exe extensions, for Cygwin portability
--- install-sh.orig 2018-03-17 14:18:08.701045461 +0100
+++ install-sh.cygwin 2018-03-17 14:28:26.577421082 +0100
@@ -250,6 +250,11 @@
-* | [=\(\)!]) src=./$src;;
esac
+ # For Cygwin compatibility.
+ if [ -x "$src".exe ]; then
+ src=${src}.exe
+ fi
+
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] install-sh: Handle .exe extensions, for Cygwin portability,
Julien ÉLIE <=