commit:     c6ffc91f3abe228721479809585cb935dcc88f21
Author:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 23 14:53:37 2017 +0000
Commit:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Thu Mar 23 14:53:37 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6ffc91f

sys-apps/prefix-chain-utils: add Cygwin support

Package-Manager: Portage-2.3.5-prefix, Repoman-2.3.2

 sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in 
b/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in
index f3439afa076..16a79b83680 100644
--- a/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in
+++ b/sys-apps/prefix-chain-utils/files/prefix-chain-wrapper.in
@@ -1,5 +1,10 @@
 #!/usr/bin/env bash
 
+if [ -r /cygdrive/. ]; then
+       winpath2unix() { cygpath -u "$1"; }
+       unixpath2win() { cygpath -w "$1"; }
+fi
+
 link_dirs=()
 opts=()
 chost="@GENTOO_PORTAGE_CHOST@"

Reply via email to