Thu, 19 Apr 2018 08:51:17 +0000
Merge
ohair@494 | 1 | #!/bin/bash |
ohair@425 | 2 | # |
ohair@425 | 3 | # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
ohair@425 | 4 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ohair@425 | 5 | # |
ohair@425 | 6 | # This code is free software; you can redistribute it and/or modify it |
ohair@425 | 7 | # under the terms of the GNU General Public License version 2 only, as |
ohair@425 | 8 | # published by the Free Software Foundation. |
ohair@425 | 9 | # |
ohair@425 | 10 | # This code is distributed in the hope that it will be useful, but WITHOUT |
ohair@425 | 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ohair@425 | 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ohair@425 | 13 | # version 2 for more details (a copy is included in the LICENSE file that |
ohair@425 | 14 | # accompanied this code). |
ohair@425 | 15 | # |
ohair@425 | 16 | # You should have received a copy of the GNU General Public License version |
ohair@425 | 17 | # 2 along with this work; if not, write to the Free Software Foundation, |
ohair@425 | 18 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ohair@425 | 19 | # |
ohair@425 | 20 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@425 | 21 | # or visit www.oracle.com if you need additional information or have any |
ohair@425 | 22 | # questions. |
ohair@425 | 23 | # |
ohair@425 | 24 | |
ohair@425 | 25 | if [ -x /usr/bin/ggrep ] ; then |
ohair@425 | 26 | # Gnu grep on Solaris |
ohair@425 | 27 | # (reference configure and build/solaris-i586-clientANDserver-release/spec.gmk |
ohair@425 | 28 | GREP=/usr/bin/ggrep |
ohair@425 | 29 | else |
ohair@425 | 30 | GREP=grep |
ohair@425 | 31 | fi |
ohair@425 | 32 | # |
ohair@425 | 33 | EXP="Note: Some input files use or override a deprecated API." |
ohair@425 | 34 | EXP="${EXP}|Note: Recompile with -Xlint:deprecation for details." |
ohair@425 | 35 | EXP="${EXP}|Note: Some input files use unchecked or unsafe operations." |
ohair@425 | 36 | EXP="${EXP}|Note: Recompile with -Xlint:unchecked for details." |
ohair@425 | 37 | EXP="${EXP}| warning" |
ohair@425 | 38 | EXP="${EXP}|uses or overrides a deprecated API." |
ohair@425 | 39 | EXP="${EXP}|uses unchecked or unsafe operations." |
ohair@425 | 40 | # |
ohair@425 | 41 | ${GREP} --line-buffered -v -E "${EXP}" |