bootstrap: Do not always manually copy aux files - ditch INSTALL

This commit is contained in:
mintsuki 2023-12-26 16:26:29 +01:00
parent d2286a1278
commit ac8fcf3ff9

View File

@ -26,11 +26,14 @@ fi
[ -d limine-efi ] || git clone https://github.com/limine-bootloader/limine-efi.git $SHALLOW_CLONE_FLAG
[ -d libgcc-binaries ] || git clone https://github.com/mintsuki/libgcc-binaries.git $SHALLOW_CLONE_FLAG
AUTOMAKE_LIBDIR="$(automake --print-libdir)"
cp "${AUTOMAKE_LIBDIR}/INSTALL" ./
mkdir -p build-aux
cp "${AUTOMAKE_LIBDIR}/config.guess" build-aux/
cp "${AUTOMAKE_LIBDIR}/config.sub" build-aux/
cp "${AUTOMAKE_LIBDIR}/install-sh" build-aux/
autoreconf -fvi -Wall
# Older versions of autoreconf have a bug where they do not
# install auxiliary files, sometimes... Check if that is the
# case and work around...
for auxfile in config.guess config.sub install-sh; do
if ! [ -f build-aux/$auxfile ]; then
mkdir -p build-aux
cp -v "$(automake --print-libdir)/$auxfile" build-aux/
fi
done