[Lunar-commits] CVS: moonbase/compilers/gcc CONFIGURE,1.3,1.4

Auke Kok sofar at lunar-linux.org
Mon Nov 8 13:28:49 UTC 2004


Update of /var/cvs/lunar/moonbase/compilers/gcc
In directory espresso.foo-projects.org:/home/sofar/active/moonbase/compilers/gcc

Modified Files:
	CONFIGURE 
Log Message:
moving mquery stuff into CONFIGUREs

Index: CONFIGURE
===================================================================
RCS file: /var/cvs/lunar/moonbase/compilers/gcc/CONFIGURE,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CONFIGURE	1 Feb 2003 23:25:21 -0000	1.3
+++ CONFIGURE	8 Nov 2004 13:28:16 -0000	1.4
@@ -2,11 +2,8 @@
 # only lin -r gcc will trigger the language selector!
 if [ -n "$RECONFIGURE" ] ; then
 
-  if ! grep -q LANGUAGES $MODULE_CONFIG ; then
-    [ -z "$LANGUAGES" ]  && LANGUAGES=${LANGUAGES:=c++}
-  else
-    eval $(echo $MODULE_CONFIG)
-  fi
+  LANGUAGES=$(get_module_config LANGUAGES)
+  [ -z "$LANGUAGES" ]  && LANGUAGES=${LANGUAGES:=c++}
 
   if query "Do you want to select additional compiler languages ? " n ; then
     OPTIONS=(
@@ -22,14 +19,13 @@
                    "${OPTIONS[@]}"`
 
     LANGUAGES="c++,$(echo $RESULT | sed 's/ /,/g')"
-    echo "LANGUAGES=\"$LANGUAGES\"" >> $MODULE_CONFIG 
+    set_module_config LANGUAGES "$LANGUAGES\""
 
   else
 
-    if ! grep -q LANGUAGES $MODULE_CONFIG ; then
-      [ -z "$LANGUAGES" ]  && LANGUAGES=${LANGUAGES:=c++}
-      echo "LANGUAGES=\"$LANGUAGES\"" >> $MODULE_CONFIG
-    fi
+    LANGUAGES=$(get_module_config LANGUAGES)
+    [ -z "$LANGUAGES" ]  && LANGUAGES=${LANGUAGES:=c++}
+    set_module_config LANGUAGES "$LANGUAGES\""
 
   fi
 



More information about the Lunar-commits mailing list