[Lunar-commits] CVS: theedge/var/lib/lunar/functions build.lunar, 1.20, 1.21

Auke Kok sofar at lunar-linux.org
Tue Oct 12 14:53:55 UTC 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory espresso.foo-projects.org:/tmp/cvs-serv6678/var/lib/lunar/functions

Modified Files:
	build.lunar 
Log Message:
Adding '--opts' flag that allows you to add OPTS flags on the fly when compiling a module: use as follows:

lin --opts '--enable-foo --enable-bar' $MODULE

to wipe the OPTS use 'lin -r $MODULE' as normal.


Index: build.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/build.lunar,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- build.lunar	24 Mar 2004 12:33:53 -0000	1.20
+++ build.lunar	12 Oct 2004 14:53:53 -0000	1.21
@@ -321,6 +321,12 @@
     fi
   fi
   grep -q "^"$MODULE"\$" $TEMP_PREPAREDDEPS 2>/dev/null && return 0
+
+  # add custom passed OPTS before retreiving them
+  if [ -n "$PASS_OPTS" ] ; then
+    OPTS="$(get_module_config OPTS) $PASS_OPTS"
+    set_module_config OPTS "$OPTS"
+  fi
   run_module_file $MODULE CONFIGURE
 }
 



More information about the Lunar-commits mailing list