Since BSD cmp(1) does not support the --ignore-initial option, use the
[oota-llvm.git] / utils / release / test-release.sh
index 0b0826481ba725e8d95d656dc30c20bf58a998d5..82264bc09992ae5d2baf81e0a3b6557cf0f5e865 100755 (executable)
@@ -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.
             # 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
                 echo "file `basename $p2` differs between phase 2 and phase 3"
             fi
         done