ohair@494: #!/bin/bash ohair@425: # ohair@425: # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. ohair@425: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@425: # ohair@425: # This code is free software; you can redistribute it and/or modify it ohair@425: # under the terms of the GNU General Public License version 2 only, as ohair@425: # published by the Free Software Foundation. ohair@425: # ohair@425: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@425: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@425: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@425: # version 2 for more details (a copy is included in the LICENSE file that ohair@425: # accompanied this code). ohair@425: # ohair@425: # You should have received a copy of the GNU General Public License version ohair@425: # 2 along with this work; if not, write to the Free Software Foundation, ohair@425: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@425: # ohair@425: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@425: # or visit www.oracle.com if you need additional information or have any ohair@425: # questions. ohair@425: # ohair@425: ohair@425: if [ -x /usr/bin/ggrep ] ; then ohair@425: # Gnu grep on Solaris ohair@425: # (reference configure and build/solaris-i586-clientANDserver-release/spec.gmk ohair@425: GREP=/usr/bin/ggrep ohair@425: else ohair@425: GREP=grep ohair@425: fi ohair@425: # ohair@425: EXP="Note: Some input files use or override a deprecated API." ohair@425: EXP="${EXP}|Note: Recompile with -Xlint:deprecation for details." ohair@425: EXP="${EXP}|Note: Some input files use unchecked or unsafe operations." ohair@425: EXP="${EXP}|Note: Recompile with -Xlint:unchecked for details." ohair@425: EXP="${EXP}| warning" ohair@425: EXP="${EXP}|uses or overrides a deprecated API." ohair@425: EXP="${EXP}|uses unchecked or unsafe operations." ohair@425: # ohair@425: ${GREP} --line-buffered -v -E "${EXP}"