[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU grep-2.5 installation patch
From: |
scott douglass |
Subject: |
GNU grep-2.5 installation patch |
Date: |
Tue, 14 May 2002 09:42:58 +0100 |
Hello,
[I'm sending this to you because the GNU grep 2.5 ChangeLog indicates that you
made the change to install egrep and fgrep links.]
Here's a small patch to GNU grep 2.5 that fixes two things about installing:
[1] it makes the egrep and fgrep links correctly obey --program-suffix
[2] it allows installing the egrep and fgrep links over existing egrep and
fgrep links
Actually, I've only tried the change by altering Makefile.in (as opposed to
Makefile.am) but the two files are so parallel I feel confident to send the
Makefile.am diffs.
Thanks.
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
- GNU grep-2.5 installation patch,
scott douglass <=