6100N/A# The contents of this file are subject to the terms of the 6100N/A# Common Development and Distribution License (the "License"). 6100N/A# You may not use this file except in compliance with the License. 6100N/A# See the License for the specific language governing permissions 6100N/A# and limitations under the License. 6100N/A# When distributing Covered Code, include this CDDL HEADER in each 6100N/A# If applicable, add the following below this CDDL HEADER, with the 6100N/A# fields enclosed by brackets "[]" replaced with your own identifying 6100N/A# information: Portions Copyright [yyyy] [name of copyright owner] 6100N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. 6100N/A # Continue with rest of script 6100N/Aif [[ ! -r
"${COMPILED_FILE}" ]] ;
then 6100N/A # Need to create initial file 6100N/Aelif [[
"${SCHEMA_DIR}" -
nt "${COMPILED_FILE}" ]] ;
then 6100N/A # Directory has been updated - file may have been added or removed 6100N/A # At least one file has been updated 6100N/Aif [[
"${NEED_COMPILE}" -
ne 0 ]] ;
then 6100N/A if [[ ! -r
"${COMPILED_FILE}" ]] ;
then 6100N/A # Since glib-compile-schemas renames the result into place, update 6100N/A # the file mtime after moving so it matches the directory mtime.