From 58f4d0d6c6f70c54f96af17983dd04321cacc1b6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 31 May 2002 07:22:38 +0000 Subject: now manages simulator makefiles too! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@841 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 83 insertions(+), 11 deletions(-) diff --git a/tools/configure b/tools/configure index db1a2b1896..307f66aa70 100755 --- a/tools/configure +++ b/tools/configure @@ -16,9 +16,64 @@ input() { echo $response } -echo "Setup your Rockbox build environment." -echo "http://bjorn.haxx.se/rockbox/" -echo "" +simulator() { + ################################################################## + # Figure out where the firmware code is! + # + + simfile="x11/lcd-x11.c" # a file to check for in the uisimulator root dir + + for dir in uisimulator . .. ../uisimulator ../../uisimulator; do + if [ -f "$dir/$simfile" ]; then + simdir="$dir/x11" + break + fi + done + + if [ -z "$simdir" ]; then + echo "This script couldn't find your uisimulator/x11 directory. Please enter the" + echo "full path to your uisimulator/x11 directory here:" + + simdir=`input` + fi + +sed > Makefile \ + -e "s,@SIMDIR@,${simdir},g" \ + -e "s,@TARGET@,${target},g" \ + -e "s,@DEBUG@,${debug},g" \ + -e "s,@DISPLAY@,${display},g" \ + -e "s,@KEYPAD@,${keypad},g" \ + -e "s,@PWD@,${pwd},g" \ +< Makefile \ -e "s,@FIRMDIR@,${firmdir},g" \ -e "s,@APPSDIR@,${appsdir},g" \ -- cgit v1.2.3