Patch from "Calin A. Culianu" <calin@ajvar.org>
authorDavid Schleef <ds@schleef.org>
Wed, 14 May 2003 18:00:13 +0000 (18:00 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 14 May 2003 18:00:13 +0000 (18:00 +0000)
scripts/dep.rtlinux

index bf330ff102770621fefd6c3bbdb12acba2785a93..9db852bc5dca17b862596f03e322231b7cd3df9b 100755 (executable)
@@ -10,6 +10,8 @@ if [ "$CONFIG_RTL" != "" -o "$CONFIG_RTL_V1" = "y" ]; then
        echo You appear to be running an RTL-patched kernel
 
        default=${RTLDIR:=/usr/src/rtl}
+STOPASKING=""
+while [ -z "$STOPASKING" ]; do
        if [ "${interactive}" = "y" ];then
                echo -n "Enter location of RTL source tree [$default]: "
                read RTLDIR
@@ -18,6 +20,10 @@ if [ "$CONFIG_RTL" != "" -o "$CONFIG_RTL_V1" = "y" ]; then
        if [ -d ${RTLDIR}/include ];then
                echo RTLDIR=$RTLDIR >>.buildvars
                echo CFLAGS += -I $RTLDIR/include -I $RTLDIR/include/compat -I $RTLDIR/include/posix -D__RT__ >>.buildvars
+               STOPASKING="1"
+        else
+               echo "$RTLDIR does not contain an include/ subdirectory.  Try again!"
        fi
+done
        export RTLDIR
 fi