make/scripts/compare.sh
changeset 58035 378007c18687
parent 55018 ecb7b9a98f0e
child 58549 9d9317fad3fe
equal deleted inserted replaced
58034:318cd16cc202 58035:378007c18687
     1 #!/bin/bash
     1 #!/bin/bash
     2 #
     2 #
     3 # Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 #
     5 #
     6 # This code is free software; you can redistribute it and/or modify it
     6 # This code is free software; you can redistribute it and/or modify it
     7 # under the terms of the GNU General Public License version 2 only, as
     7 # under the terms of the GNU General Public License version 2 only, as
     8 # published by the Free Software Foundation.
     8 # published by the Free Software Foundation.
   359                 && [ "`echo $TF | $GREP -c 'Zip archive data'`" -gt 0 ]
   359                 && [ "`echo $TF | $GREP -c 'Zip archive data'`" -gt 0 ]
   360             then
   360             then
   361                 # the way we produce zip-files make it so that directories are stored in
   361                 # the way we produce zip-files make it so that directories are stored in
   362                 # old file but not in new (only files with full-path) this makes file
   362                 # old file but not in new (only files with full-path) this makes file
   363                 # report them as different
   363                 # report them as different
       
   364                 continue
       
   365             elif [ "`echo $OF | $GREP -c 'MSVC program database ver 7.00'`" -gt 0 ] \
       
   366                      && [ "`echo $TF | $GREP -c 'MSVC program database ver 7.00'`" -gt 0 ]
       
   367             then
       
   368                 # For Windows pdb files the file command reports some kind of size data
       
   369                 # which may sometimes come out randomly different.
   364                 continue
   370                 continue
   365             else
   371             else
   366                 if [ -z "$found" ]; then echo ; found="yes"; fi
   372                 if [ -z "$found" ]; then echo ; found="yes"; fi
   367                 $PRINTF "\tother: ${OF}\n\tthis : ${TF}\n"
   373                 $PRINTF "\tother: ${OF}\n\tthis : ${TF}\n"
   368             fi
   374             fi