diff --git a/build-devkit.sh b/build-devkit.sh index 08478c8..8311d0d 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -34,6 +34,20 @@ LIBFAT_URL="$DEVKITPRO_URL/$LIBFAT" LIBMIRKO_URL="$DEVKITPRO_URL/$LIBMIRKO" GDB_URL="http://ftp.gnu.org/gnu/gdb/$GDB" + +#--------------------------------------------------------------------------------- +# Look for automated configuration file to bypass prompts +#--------------------------------------------------------------------------------- + +echo -n "Looking for configuration file... " +if [ -f config.sh ]; then + echo "Found." + . config.sh +else + echo "Not found" +fi + + #--------------------------------------------------------------------------------- # Ask whether to download the source packages or not #--------------------------------------------------------------------------------- diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..4d55caf --- /dev/null +++ b/config.sh @@ -0,0 +1,41 @@ +#!/bin/sh +#--------------------------------------------------------------------------------- +# variables for unattended script execution +#--------------------------------------------------------------------------------- + +#--------------------------------------------------------------------------------- +# Select package +#--------------------------------------------------------------------------------- +# 0: User selects manually +# 1: devkitARM +# 2: devkitPPC +# 3: devkitPSP +#--------------------------------------------------------------------------------- +BUILD_DKPRO_PACKAGE=0 + +#--------------------------------------------------------------------------------- +# Download source packages +#--------------------------------------------------------------------------------- +# 0: User selects manually +# 1: already downloaded +# 2: download packages +#--------------------------------------------------------------------------------- +BUILD_DKPRO_DOWNLOAD=0 + +#--------------------------------------------------------------------------------- +# Toolchain installation directory, comment if not specified +#--------------------------------------------------------------------------------- +#BUILD_DKPRO_INSTALLDIR=/opt/devkitpro + +#--------------------------------------------------------------------------------- +# Path to previously downloaded source packages, comment if not specified +#--------------------------------------------------------------------------------- +#BUILD_DKPRO_SRCDIR=. + +#--------------------------------------------------------------------------------- +# Automated script execution +#--------------------------------------------------------------------------------- +# 0: Ask to delete build folders & patched sources +# 1: Use defaults, don't pause for answers +#--------------------------------------------------------------------------------- +BUILD_DKPRO_AUTOMATED=0