[Lunar-commits] r19484 - moonbase/trunk/utils/grep

Auke Kok sofar at lunar-linux.org
Mon Mar 27 17:39:15 UTC 2006


Author: sofar
Date: 2006-03-27 17:39:15 +0000 (Mon, 27 Mar 2006)
New Revision: 19484

Modified:
   moonbase/trunk/utils/grep/BUILD
   moonbase/trunk/utils/grep/CONFIGURE
Log:
mqeury this. turn LARGEFILE on by default.


Modified: moonbase/trunk/utils/grep/BUILD
===================================================================
--- moonbase/trunk/utils/grep/BUILD	2006-03-27 17:32:46 UTC (rev 19483)
+++ moonbase/trunk/utils/grep/BUILD	2006-03-27 17:39:15 UTC (rev 19484)
@@ -1,6 +1,25 @@
-sedit "s/SYMLINK=\"ln -s\"/SYMLINK=\"ln -sf\"/" configure
 (
-   OPTS=$OPTS" --bindir=/bin --sbindir=/sbin --libdir=/lib --includedir=/include"
-   default_build
 
+	if [ "$USE_PERL" == "y" ]; then
+		OPTS=$OPTS" --enable-perl-regexp"
+	else
+		OPTS=$OPTS" --disable-perl-regexp"
+	fi
+
+	if [ "$USE_LARGEFILE" == "y" ]; then
+		OPTS=$OPTS" --enable-largefile"
+	else
+		OPTS=$OPTS" --disable-largefile"
+	fi
+
+	if [ "$USE_NLS" == "y" ]; then
+		OPTS=$OPTS" --enable-nls"
+	else
+		OPTS=$OPTS" --disable-nls"
+	fi
+
+	sedit "s/SYMLINK=\"ln -s\"/SYMLINK=\"ln -sf\"/" configure &&
+	OPTS=$OPTS" --bindir=/bin --sbindir=/sbin --libdir=/lib --includedir=/include"
+	default_build
+
 ) > $C_FIFO 2>&1

Modified: moonbase/trunk/utils/grep/CONFIGURE
===================================================================
--- moonbase/trunk/utils/grep/CONFIGURE	2006-03-27 17:32:46 UTC (rev 19483)
+++ moonbase/trunk/utils/grep/CONFIGURE	2006-03-27 17:39:15 UTC (rev 19484)
@@ -1,20 +1,3 @@
-if  !  grep  -q  CONFIGURED  $MODULE_CONFIG;  then
-
-  if    query  "Do you want to allow Perl RegExps in your grep? " n
-      then OPTS=$OPTS" --enable-perl-regexp"
-      else OPTS=$OPTS" --disable-perl-regexp"
-  fi
-
-  if    query  "Do you want to enable large file support? " n
-      then OPTS=$OPTS" --enable-largefile"
-      else OPTS=$OPTS" --disable-largefile"
-  fi
-
-  if    query  "Do you want to use NLS? " y
-      then OPTS=$OPTS" --enable-nls"
-      else OPTS=$OPTS" --disable-nls"
-  fi
-
-   echo  'CONFIGURED="y"'  >>  $MODULE_CONFIG
-   echo  'OPTS='\"$OPTS\"    >>  $MODULE_CONFIG
-fi
+mquery USE_PERL "Do you want to allow Perl RegExps in your grep?" y
+mquery USE_LARGEFILE "Do you want to enable large file support?" y
+mquery USE_NLS "Do you want to use NLS?" y



More information about the Lunar-commits mailing list