From 709eec4bce4b8af13eef712e614ad047beb2c9bb Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 11 Nov 2024 15:09:49 -0500 Subject: [PATCH] Update autogen.sh so that it can be run from build directory --- autogen.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/autogen.sh b/autogen.sh index c3a25a9f..cc09cf61 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,14 +1,19 @@ #!/bin/sh +srcdir=$(dirname $0) +test -z "$srcdir" && srcdir=. + # Generate the documentation about compiling Window Maker -./script/generate-txt-from-texi.sh "doc/build/Compilation.texi" -o "INSTALL-WMAKER" -./script/generate-txt-from-texi.sh "doc/build/Translations.texi" -o "README.i18n" +$srcdir/script/generate-txt-from-texi.sh "$srcdir/doc/build/Compilation.texi" \ + -o "$srcdir/INSTALL-WMAKER" +$srcdir/script/generate-txt-from-texi.sh "$srcdir/doc/build/Translations.texi" \ + -o "$srcdir/README.i18n" # Change date of the files to the past so they will be regenerated by 'make' -touch -d '2000-01-01' INSTALL-WMAKER README.i18n +touch -d '2000-01-01' $srcdir/INSTALL-WMAKER $srcdir/README.i18n # Generate the configure script from the 'configure.ac' -autoreconf -vfi -I m4 +autoreconf -vfi -I m4 $srcdir exit 0