[gnote/wip/hadess/build-failures: 6/7] Fix srcdir != builddir running of autogen.sh




commit 870d62db1348ef49b346009af44434dd1ea205d5
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 22 15:04:29 2021 +0100

    Fix srcdir != builddir running of autogen.sh
    
    As used in jhbuild.

 autogen.sh | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/autogen.sh b/autogen.sh
index 2a1512b7..833d997b 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,11 +22,16 @@ fi
 
 set -x
 
+olddir="`pwd`"
+cd $srcdir
+
 aclocal --install || exit 1
 glib-gettextize --force --copy || exit 1
 intltoolize --force --copy --automake || exit 1
 autoreconf --verbose --force --install -Wno-portability || exit 1
 
+cd "$olddir"
+
 if [ "$NOCONFIGURE" = "" ]; then
         $srcdir/configure "$@" || exit 1
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]