[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Symlink installation of grep/fgrep in grep 2.5
From: |
Albert Chin-A-Young |
Subject: |
Symlink installation of grep/fgrep in grep 2.5 |
Date: |
Mon, 18 Mar 2002 00:42:46 -0600 |
User-agent: |
Mutt/1.2.5i |
The creation of the symbolic link from fgrep/egrep -> grep does not
honor --program-prefix or --program-transform-name. The patch below
fixes this. Doing it in configure is hard as $(transform) includes
','.
--
albert chin (address@hidden)
-- snip snip
--- src/Makefile.am.orig Sun Mar 17 23:51:48 2002
+++ src/Makefile.am Mon Mar 18 00:32:20 2002
@@ -18,5 +17,5 @@
vms_fab.c vms_fab.h
install-exec-local:
- @SYMLINK@ @SYMLINKFROM@ $(bindir)/egrep
- @SYMLINK@ @SYMLINKFROM@ $(bindir)/fgrep
+ @SYMLINK@ `echo grep|sed '$(transform)'` $(bindir)/egrep
+ @SYMLINK@ `echo grep|sed '$(transform)'` $(bindir)/fgrep
--- configure.in.orig Sun Mar 17 22:55:07 2002
+++ configure.in Mon Mar 18 00:31:47 2002
@@ -151,7 +153,6 @@
if test -L test01; then
SYMLINK="ln -s"
else
- SYMLINKFROM="${bindir}/grep"
rm -f test01
ln test00 test01 || :
if test -e test01; then
@@ -162,7 +163,6 @@
fi
AC_MSG_RESULT($SYMLINK)
AC_SUBST(SYMLINK)
-AC_SUBST(SYMLINKFROM)
rm -f test00 test01
AC_OUTPUT(Makefile lib/Makefile lib/posix/Makefile src/Makefile tests/Makefile
po/Makefile.in intl/Makefile doc/Makefile m4/Makefile vms/Makefile
bootstrap/Makefile, [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >
po/Makefile; echo timestamp > stamp-h])
- Symlink installation of grep/fgrep in grep 2.5,
Albert Chin-A-Young <=