default_config() optimization?

Jon South striker at lunar-linux.org
Fri Oct 8 19:06:18 UTC 2004


To whom it may concern (and especially those that dont),

To help cut down even more on space in modules (take a look at the BUILD 
file for dd_rescue), see the following diff for build.lunar:


  default_config() {
    debug_msg "default_config ($@)"
+
+  if [ ! -f "configure" ]; then
+    return
+  fi
+
    verbose_msg "running \"default_config\""

    verbose_msg "CFLAGS=\"$CFLAGS\""            &&


Not sure if this would be acceptable since it silently returns if 
configure doesnt exist -- but I can't think of a scenario where someone 
would honestly need this to give an error while developing a module.

This is only an example; if anyone has a better solution, please, be my 
guest =)

-Striker

-- 
The system requirements said "Windows 95 or better"
So I installed Linux.

Microsoft sells you Windows; Linux gives you the house.

v1sw6CUhw5ln4pr5ck4ma6/7u8Lw3Tm5l6+8GOa21s6Mr2e5+7t5/6TNDVESLFRXMb3Hp0en6/7g9ASTHCNMP 
www.hackerkey.com

Registered Linux User: 332618
<http://striker.interhact.net/striker.asc>


More information about the Lunar-dev mailing list