add config file for unattended installs

This commit is contained in:
Dave Murphy 2008-03-02 13:27:09 +00:00
parent 50b033c6df
commit 558d39cdda
2 changed files with 55 additions and 0 deletions

View File

@ -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
#---------------------------------------------------------------------------------

41
config.sh Normal file
View File

@ -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