mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
26 lines
521 B
Bash
Executable File
26 lines
521 B
Bash
Executable File
#!/bin/bash
|
|
|
|
automagic() {
|
|
if ! sh platform/unix/gen-makefile; then
|
|
echo "You should be doing this from the root directory of the project."
|
|
exit 1
|
|
fi
|
|
autoheader 2>&1 || return 1 # Gimmie config.h.in
|
|
libtoolize --force 2>&1 || return 1
|
|
aclocal 2>&1 || return 1
|
|
autoconf 2>&1 || return 1
|
|
automake -a 2>&1 || return 1
|
|
}
|
|
|
|
if [[ $1 == "-d" ]]; then
|
|
automagic
|
|
else
|
|
automagic > /dev/null
|
|
fi
|
|
if [ $? -eq 1 ]; then
|
|
echo "Failed, please contact the developers."
|
|
exit 1
|
|
else
|
|
echo "Success, carry on configuring."
|
|
fi
|