[openssl-commits] [openssl] master update
Richard Levitte
levitte at openssl.org
Tue Mar 15 21:29:01 UTC 2016
The branch master has been updated
via 29b28eee3eb6620fa72e6c94b3957ecea0f059b5 (commit)
from 08538fc0a57a9317da22958beeab3ff8af4b2ded (commit)
- Log -----------------------------------------------------------------
commit 29b28eee3eb6620fa72e6c94b3957ecea0f059b5
Author: Richard Levitte <levitte at openssl.org>
Date: Tue Mar 15 09:05:20 2016 +0100
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 at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
Configurations/unix-Makefile.tmpl | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index e9288dc..da6b880 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
}
More information about the openssl-commits
mailing list