[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.20-9-g824e153
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.20-9-g824e153 |
Date: |
Tue, 17 Jun 2014 19:06:10 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 824e15341240f3e2bff4e0cf9789edef9f80bacb (commit)
from 66c0c3174e0626f6f58285f118fc6845ebc3c807 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=824e15341240f3e2bff4e0cf9789edef9f80bacb
commit 824e15341240f3e2bff4e0cf9789edef9f80bacb
Author: Paul Eggert <address@hidden>
Date: Tue Jun 17 12:02:01 2014 -0700
build: don't make output files read-only
This led to problems, such as the prompt "mv: try to overwrite
'egrep', overriding mode 0555 (r-xr-xr-x)? " during a build.
It can be worked around, but the cure is worse than the disease;
making output files read-only is more trouble than it's worth.
* doc/Makefile.am (grep.1, egrep.1, fgrep.1):
* lib/Makefile.am (colorize.c):
* src/Makefile.am (egrep fgrep):
Don't make output files read-only. Prefer separate commands to
'&&' when either will do.
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 810e916..9a50434 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -25,11 +25,10 @@ EXTRA_DIST = grep.in.1
CLEANFILES = grep.1 egrep.1 fgrep.1
grep.1: grep.in.1
- $(AM_V_GEN)rm -f $@ address@hidden
- $(AM_V_at)sed 's/@''VERSION@/$(VERSION)/' \
- < $(srcdir)/grep.in.1 > address@hidden && chmod 444 address@hidden &&
mv address@hidden $@
+ $(AM_V_GEN)sed 's/@''VERSION@/$(VERSION)/' < $(srcdir)/grep.in.1 >
address@hidden
+ $(AM_V_at)mv address@hidden $@
egrep.1 fgrep.1: Makefile.am
- $(AM_V_GEN)rm -f $@ address@hidden
- $(AM_V_at)inst=`echo grep | sed '$(transform)'`.1 \
- && echo ".so man1/$$inst" > address@hidden && chmod 444
address@hidden && mv address@hidden $@
+ $(AM_V_GEN)inst=`echo grep | sed '$(transform)'`.1 \
+ && echo ".so man1/$$inst" > address@hidden
+ $(AM_V_at)mv address@hidden $@
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 9bd7b0d..79d582b 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -34,9 +34,7 @@ libgreputils_a_SOURCES += colorize.h
EXTRA_DIST += colorize-posix.c colorize-w32.c
CLEANFILES += colorize.c
colorize.c:
- $(AM_V_GEN)rm -f address@hidden
$(AM_V_at)echo '#include <$(COLORIZE_SOURCE)>' >address@hidden
- $(AM_V_at)chmod a=rx address@hidden
$(AM_V_at)mv address@hidden $@
libgreputils_a_LIBADD += $(LIBOBJS) $(ALLOCA)
diff --git a/src/Makefile.am b/src/Makefile.am
index 0697c63..11acdb1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -45,8 +45,7 @@ AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
EXTRA_DIST = dosbuf.c egrep.sh
egrep fgrep: egrep.sh Makefile
- $(AM_V_GEN)rm -f address@hidden
- $(AM_V_at)grep=`echo grep | sed -e '$(transform)'` && \
+ $(AM_V_GEN)grep=`echo grep | sed -e '$(transform)'` && \
case $@ in egrep) option=-E;; fgrep) option=-F;; esac && \
shell_does_substrings='set x/y && d=$${1%/*} && test "$$d" = x' && \
if $(SHELL) -c "$$shell_does_substrings" 2>/dev/null; then \
@@ -58,7 +57,7 @@ egrep fgrep: egrep.sh Makefile
-e "$$edit_substring" \
-e "s|address@hidden@|$$grep|g"
\
-e "s|address@hidden@|$$option|g" <$(srcdir)/egrep.sh
>address@hidden
- $(AM_V_at)chmod a=rx address@hidden
+ $(AM_V_at)chmod +x address@hidden
$(AM_V_at)mv address@hidden $@
CLEANFILES = egrep fgrep *-t
-----------------------------------------------------------------------
Summary of changes:
doc/Makefile.am | 11 +++++------
lib/Makefile.am | 2 --
src/Makefile.am | 5 ++---
3 files changed, 7 insertions(+), 11 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.20-9-g824e153,
Paul Eggert <=