mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-07 18:36:09 +08:00

This makes them pass shellcheck. Except for a few unused export warnings. I also wonder if the majority of these files should be in the root of the project, or should be moved to "build-scripts" (or should still even exist). a few minor changes one more minor changes
31 lines
845 B
Bash
Executable File
31 lines
845 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# If an error occurs, quit the script and inform the user. This ensures scripts
|
|
# like ./build-macos and ./build-macos-sdl2 etc. Don't continue on if Autotools isn't installed.
|
|
function finish {
|
|
if [ "${success}" -eq 0 ]; then
|
|
echo 'autogen.sh failed to complete: verify that GNU Autotools is installed on the system and try again'
|
|
fi
|
|
}
|
|
|
|
success=0
|
|
trap finish EXIT
|
|
set -e
|
|
|
|
echo "Generating build information using aclocal, autoheader, automake and autoconf"
|
|
echo "This may take a while ..."
|
|
|
|
# Regenerate configuration files.
|
|
|
|
aclocal
|
|
autoheader
|
|
automake --include-deps --add-missing --copy
|
|
autoconf
|
|
|
|
echo "Now you are ready to run ./configure."
|
|
echo "You can also run ./configure --help for extra features to enable/disable."
|
|
|
|
# Don't quit on errors again from here on out (for calling scripts).
|
|
set +e
|
|
success=1
|