bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU grep-2.5 installation patch


From: Paul Eggert
Subject: Re: GNU grep-2.5 installation patch
Date: Tue, 14 May 2002 05:54:53 -0700 (PDT)

> From: scott douglass <address@hidden>
> Date: Tue, 14 May 2002 09:42:58 +0100
> 
> diff -ur grep-2.5-orig/src/Makefile.am grep-2.5-patched/src/Makefile.am
> --- grep-2.5-orig/src/Makefile.am     Wed Mar 13 15:23:51 2002
> +++ grep-2.5-patched/src/Makefile.am  Mon May 13 15:44:24 2002
> @@ -18,5 +18,9 @@
>               vms_fab.c vms_fab.h
>  
>  install-exec-local:
> -     @SYMLINK@ @SYMLINKFROM@ $(bindir)/egrep
> -     @SYMLINK@ @SYMLINKFROM@ $(bindir)/fgrep
> +     @g=`echo @SYMLINKFROM@|sed '$(transform);s/$$/$(EXEEXT)/'`; for p in 
> egrep fgrep; do \
> +       f=`echo $$f|sed '$(transform);s/$$/$(EXEEXT)/'`; \
> +       echo " rm -f $(DESTDIR)$(bindir)/$$f ; @SYMLINK@ $$g $(bindir)/$$f"; \
> +       rm -f $(DESTDIR)$(bindir)/$$f; \
> +       @SYMLINK@ $$g $(bindir)/$$f; \
> +     done
> 

That patch has been superseded by the latest grep CVS
<http://savannah.gnu.org/projects/grep/>.

However, the latest CVS still has a problem in this area.
I submitted the following patch in March, but the maintainer
hasn't had time to install grep patches recently.  Please
give it a try if you have the time.

This patch is taken from Albert Chin's latest message on this and
other grep subjects, which has unfortunately expired from the
pipermail archive.


2002-03-27  Paul Eggert  <address@hidden>

        * src/Makefile.am (egrep, fgrep): Apply $(transform) to grep,
        and prepend $(bindir).  This is taken from a patch by Albert
        Chin.

--- src/Makefile.am.bak 2002-03-26 07:49:46.000000000 -0800
+++ src/Makefile.am     2002-03-27 17:59:14.964337004 -0800
@@ -20,11 +20,11 @@ EXTRA_DIST = \
 
 egrep:
        echo '#!/bin/sh' >$@
-       echo 'exec grep -E $${1+"$$@"}' >>$@
+       echo 'exec $(bindir)/'`echo grep|sed '$(transform)'`' -E $${1+"$$@"}' 
>>$@
        chmod a+x $@
 
 fgrep:
        echo '#!/bin/sh' >$@
-       echo 'exec grep -F $${1+"$$@"}' >>$@
+       echo 'exec $(bindir)/'`echo grep|sed '$(transform)'`' -F $${1+"$$@"}' 
>>$@
        chmod a+x $@
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]