1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 10:22:34 +01:00

Update autogen.sh so that it can be run from build directory

This commit is contained in:
Doug Torrance
2024-11-11 15:09:49 -05:00
committed by Carlos R. Mafra
parent b179803c11
commit 709eec4bce

View File

@@ -1,14 +1,19 @@
#!/bin/sh #!/bin/sh
srcdir=$(dirname $0)
test -z "$srcdir" && srcdir=.
# Generate the documentation about compiling Window Maker # Generate the documentation about compiling Window Maker
./script/generate-txt-from-texi.sh "doc/build/Compilation.texi" -o "INSTALL-WMAKER" $srcdir/script/generate-txt-from-texi.sh "$srcdir/doc/build/Compilation.texi" \
./script/generate-txt-from-texi.sh "doc/build/Translations.texi" -o "README.i18n" -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' # 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' # Generate the configure script from the 'configure.ac'
autoreconf -vfi -I m4 autoreconf -vfi -I m4 $srcdir
exit 0 exit 0