summaryrefslogtreecommitdiffstats
path: root/Configurations/unix-Makefile.tmpl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-03-15 09:05:20 +0100
committerRichard Levitte <levitte@openssl.org>2016-03-15 22:28:16 +0100
commit29b28eee3eb6620fa72e6c94b3957ecea0f059b5 (patch)
tree80f1c7027bd035fe1caa00d805709147e1b02992 /Configurations/unix-Makefile.tmpl
parent08538fc0a57a9317da22958beeab3ff8af4b2ded (diff)
Not all shells understand !
In unix-Makefile.tmpl, this construction has been used a few times if ! something; then ... It seems, though, that some shells do not understand !, so these need to be changed. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configurations/unix-Makefile.tmpl')
-rw-r--r--Configurations/unix-Makefile.tmpl18
1 files changed, 9 insertions, 9 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index e9288dc3de..da6b880bd2 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -283,10 +283,10 @@ depend:
for d in $(DEPS); do \
if [ -f $$d ]; then cat $$d; fi; \
done ) > Makefile.new; \
- if ! cmp Makefile.new Makefile >/dev/null 2>&1; then \
- mv -f Makefile.new Makefile; \
- else \
+ if cmp Makefile.new Makefile >/dev/null 2>&1; then \
rm -f Makefile.new; \
+ else \
+ mv -f Makefile.new Makefile; \
fi; \
fi
@: {- output_on() if $disabled{makedepend}; "" -}
@@ -895,10 +895,10 @@ $obj$depext: $deps
perl -i -pe 's/^.*\\|//; s/ \\/(\\\\.|[^ ])*//; #\\
\$\$_ = undef if (/: *\$\$/ || /^(#.*| *)\$\$/); #\\
\$\$_.="\\n" unless !defined(\$\$_) or /\\R\$\$/g;' \$\@.tmp
- \@if ! cmp \$\@.tmp \$\@ > /dev/null 2> /dev/null; then \\
- mv \$\@.tmp \$\@; \\
- else \\
+ \@if cmp \$\@.tmp \$\@ > /dev/null 2> /dev/null; then \\
rm -f \$\@.tmp; \\
+ else \\
+ mv \$\@.tmp \$\@; \\
fi
EOF
$deps = $obj.$depext;
@@ -914,10 +914,10 @@ EOF
$obj$objext: $deps
\$(CC) \$(CFLAGS) $ecflags$incs -MMD -MF $obj$depext.tmp -MT \$\@ -c -o \$\@ $srcs
\@touch $obj$depext.tmp
- \@if ! cmp $obj$depext.tmp $obj$depext > /dev/null 2> /dev/null; then \\
- mv $obj$depext.tmp $obj$depext; \\
- else \\
+ \@if cmp $obj$depext.tmp $obj$depext > /dev/null 2> /dev/null; then \\
rm -f $obj$depext.tmp; \\
+ else \\
+ mv $obj$depext.tmp $obj$depext; \\
fi
EOF
}