summaryrefslogtreecommitdiffstats
path: root/llvm/utils/release
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2015-07-20 22:07:27 +0000
committerDimitry Andric <dimitry@andric.com>2015-07-20 22:07:27 +0000
commit424452513ecf6947b0a5ae33c35b4c621020c7f2 (patch)
tree9e1b265ad9db47c73f82e667b6b6b6919cab48b2 /llvm/utils/release
parent069b18a7456fd1f79f32f01b596cc6778a09a402 (diff)
downloadbcm5719-llvm-424452513ecf6947b0a5ae33c35b4c621020c7f2.tar.gz
bcm5719-llvm-424452513ecf6947b0a5ae33c35b4c621020c7f2.zip
Since BSD cmp(1) does not support the --ignore-initial option, use the
more portable 3rd and 4th arguments to skip the first 16 bytes during the comparison of Phase2 and Phase3 objects. llvm-svn: 242721
Diffstat (limited to 'llvm/utils/release')
-rwxr-xr-xllvm/utils/release/test-release.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 0b0826481ba..82264bc0999 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -486,8 +486,8 @@ for Flavor in $Flavors ; do
# Substitute 'Phase2' for 'Phase3' in the Phase 2 object file in
# case there are build paths in the debug info. On some systems,
# sed adds a newline to the output, so pass $p3 through sed too.
- if ! cmp --ignore-initial=16 <(sed -e 's,Phase2,Phase3,g' $p2) \
- <(sed -e '' $p3) > /dev/null 2>&1 ; then
+ if ! cmp -s <(sed -e 's,Phase2,Phase3,g' $p2) <(sed -e '' $p3) \
+ 16 16 ; then
echo "file `basename $p2` differs between phase 2 and phase 3"
fi
done
OpenPOWER on IntegriCloud