[newlib-cygwin] Cygwin: autogen.sh: Allow running from any directory

Corinna Vinschen corinna@sourceware.org
Thu May 6 09:20:13 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=895f6d2b598e5d0da020eef2edb92f215db8eb39

commit 895f6d2b598e5d0da020eef2edb92f215db8eb39
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu May 6 10:56:20 2021 +0200

    Cygwin: autogen.sh: Allow running from any directory
    
    autogen.sh expects to run from within the winsup dir, so
    set CWD accordingly before running autotools.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/autogen.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/autogen.sh b/winsup/autogen.sh
index 2dae1ae37..22036d976 100755
--- a/winsup/autogen.sh
+++ b/winsup/autogen.sh
@@ -1,4 +1,6 @@
+#!/bin/sh
 set -e
+cd $(dirname $0)
 /usr/bin/aclocal --force
 /usr/bin/autoconf -f
 /usr/bin/automake -ac


More information about the Cygwin-cvs mailing list