sendmail_include.sh revision 39b0b3b7a730af51562e3efcb6ee9a2c52f62fb3
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
export PATH
{
default="15m"
if [ $# -lt 1 ]; then
return
fi
answer=$1
else
fi
}
{
}
{
if [ ! -f $1 ]; then
echo "$1 does not exist" >&2
exit $SMF_EXIT_ERR_CONFIG
fi
}
{
# expected to be called with two arguments: .cf path & path to m4 file
[ $# -lt 2 ] && return
cf_path=$1
m4_path=$2
if [ -f "${cf_path}.old" ]; then
[ $? -ne 0 ] && exit $SMF_EXIT_ERR_CONFIG
[ $? -ne 0 ] && exit $SMF_EXIT_ERR_CONFIG
fi
#
# If ${cf_path}.old does not exist, assume it was taken care
# of on a previous run.
#
else
/*) ;; # absolute path
*) return;;
esac
m4flags=""
else
m4flags="-DSUN_HIDE_INTERNAL_DETAILS"
fi
[ $? -ne 0 ] && exit $SMF_EXIT_ERR_CONFIG
)
[ $? -ne 0 ] && exit $SMF_EXIT_ERR_CONFIG
fi
}