From 715a141ade7029ba79bf2428a83b4432d91ce657 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Fri, 10 Jan 2020 17:46:09 -0500 Subject: [PATCH] remove useless use of cat for printing config.mak This `cat config.mak` was added in 37cec08 (Print config.mak to aid confirmation/verification of settings, 2019-02-02). Replace it by piping the earlier cat through tee so we get a copy of the config on stdout as well as written to config.mak. --- git.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/git.spec b/git.spec index fbc1189..641a3a8 100644 --- a/git.spec +++ b/git.spec @@ -509,7 +509,8 @@ sed -i '/^git-p4/d' command-list.txt # Use these same options for every invocation of 'make'. # Otherwise it will rebuild in %%install due to flags changes. -cat << \EOF > config.mak +# Pipe to tee to aid confirmation/verification of settings. +cat << \EOF | tee config.mak V = 1 CFLAGS = %{build_cflags} LDFLAGS = %{build_ldflags} @@ -537,9 +538,6 @@ GIT_PROVE_OPTS = --verbose --normalize %{?_smp_mflags} --formatter=TAP::Formatte GIT_TEST_OPTS = -x --verbose-log EOF -# Print config.mak to aid confirmation/verification of settings -cat config.mak - # Filter bogus perl requires # packed-refs comes from a comment in contrib/hooks/update-paranoid %if %{use_new_rpm_filters}