[Lunar-commits] r18942 - in moonbase/trunk: devel/binutils/plugin.d devel/make/plugin.d distributed/distcc/plugin.d utils/ccache/plugin.d

Auke Kok sofar at lunar-linux.org
Tue Feb 28 15:31:28 UTC 2006


Author: sofar
Date: 2006-02-28 15:31:21 +0000 (Tue, 28 Feb 2006)
New Revision: 18942

Modified:
   moonbase/trunk/devel/binutils/plugin.d/optimize-gnu_ld.plugin
   moonbase/trunk/devel/make/plugin.d/optimize-gnu_make.plugin
   moonbase/trunk/distributed/distcc/plugin.d/optimize-distcc.plugin
   moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin
Log:
Making this ElAlgelo proof

Modified: moonbase/trunk/devel/binutils/plugin.d/optimize-gnu_ld.plugin
===================================================================
--- moonbase/trunk/devel/binutils/plugin.d/optimize-gnu_ld.plugin	2006-02-28 12:45:25 UTC (rev 18941)
+++ moonbase/trunk/devel/binutils/plugin.d/optimize-gnu_ld.plugin	2006-02-28 15:31:21 UTC (rev 18942)
@@ -5,7 +5,9 @@
 plugin_gnu_ld_optimize()
 {
 
-	. /etc/lunar/local/optimizations.GNU_LD
+	if [ -f /etc/lunar/local/optimizations.GNU_LD ]; then
+		. /etc/lunar/local/optimizations.GNU_LD
+	fi
 
 	for LD in ${LDF[@]}; do
 		case $LD in

Modified: moonbase/trunk/devel/make/plugin.d/optimize-gnu_make.plugin
===================================================================
--- moonbase/trunk/devel/make/plugin.d/optimize-gnu_make.plugin	2006-02-28 12:45:25 UTC (rev 18941)
+++ moonbase/trunk/devel/make/plugin.d/optimize-gnu_make.plugin	2006-02-28 15:31:21 UTC (rev 18942)
@@ -5,12 +5,14 @@
 plugin_gnu_make_optimize()
 {
 
-	. /etc/lunar/local/optimizations.GNU_MAKE
+	if [ -f /etc/lunar/local/optimizations.GNU_MAKE ]; then
+		. /etc/lunar/local/optimizations.GNU_MAKE
+	fi
 
 	if [ "$PSAFE" == "no" ] ; then
 		unset MAKES
 	elif (( MAKES > 1 )) ; then
-        	unset MAKES
+		unset MAKES
 	else
 		if module_installed linux-openmosix; then
 			MAKE_EXT="$MAKE_EXT mosrun -h"

Modified: moonbase/trunk/distributed/distcc/plugin.d/optimize-distcc.plugin
===================================================================
--- moonbase/trunk/distributed/distcc/plugin.d/optimize-distcc.plugin	2006-02-28 12:45:25 UTC (rev 18941)
+++ moonbase/trunk/distributed/distcc/plugin.d/optimize-distcc.plugin	2006-02-28 15:31:21 UTC (rev 18942)
@@ -5,7 +5,9 @@
 plugin_distcc_optimize()
 {
 
-	. /etc/lunar/local/optimizations.DISTCC
+	if [ -f /etc/lunar/local/optimizations.DISTCC ]; then
+		. /etc/lunar/local/optimizations.DISTCC
+	fi
 	
 	if [ "$USE_DISTCC" == "yes" ]; then
 		# we append distcc in case ccache is also used to

Modified: moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin
===================================================================
--- moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin	2006-02-28 12:45:25 UTC (rev 18941)
+++ moonbase/trunk/utils/ccache/plugin.d/optimize-ccache.plugin	2006-02-28 15:31:21 UTC (rev 18942)
@@ -5,7 +5,9 @@
 plugin_ccache_optimize()
 {
 
-	. /etc/lunar/local/optimizations.CCACHE
+	if [ -f /etc/lunar/local/optimizations.CCACHE ]; then
+		. /etc/lunar/local/optimizations.CCACHE
+	fi
 	
 	if [ "$USE_CCACHE" == "yes" ]; then
 		# we PRE-pend ccache in case distcc is also used to



More information about the Lunar-commits mailing list