1*47703246Ssommerfe#!/bin/ksh -p 2*47703246Ssommerfe# 3*47703246Ssommerfe# CDDL HEADER START 4*47703246Ssommerfe# 5*47703246Ssommerfe# The contents of this file are subject to the terms of the 6*47703246Ssommerfe# Common Development and Distribution License (the "License"). 7*47703246Ssommerfe# You may not use this file except in compliance with the License. 8*47703246Ssommerfe# 9*47703246Ssommerfe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*47703246Ssommerfe# or http://www.opensolaris.org/os/licensing. 11*47703246Ssommerfe# See the License for the specific language governing permissions 12*47703246Ssommerfe# and limitations under the License. 13*47703246Ssommerfe# 14*47703246Ssommerfe# When distributing Covered Code, include this CDDL HEADER in each 15*47703246Ssommerfe# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*47703246Ssommerfe# If applicable, add the following below this CDDL HEADER, with the 17*47703246Ssommerfe# fields enclosed by brackets "[]" replaced with your own identifying 18*47703246Ssommerfe# information: Portions Copyright [yyyy] [name of copyright owner] 19*47703246Ssommerfe# 20*47703246Ssommerfe# CDDL HEADER END 21*47703246Ssommerfe# 22*47703246Ssommerfe 23*47703246Ssommerfe# 24*47703246Ssommerfe# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 25*47703246Ssommerfe# Use is subject to license terms. 26*47703246Ssommerfe# 27*47703246Ssommerfe# ident "%Z%%M% %I% %E% SMI" 28*47703246Ssommerfe# 29*47703246Ssommerfe# 30*47703246Ssommerfe# Sample system-wide /etc/nightly.conf file for shared build servers. 31*47703246Ssommerfe# 32*47703246Ssommerfesys_pre_nightly() { 33*47703246Ssommerfe if [ -f /etc/nonightly ]; then 34*47703246Ssommerfe cat /etc/nonightly 35*47703246Ssommerfe exit 1 36*47703246Ssommerfe fi 37*47703246Ssommerfe} 38*47703246Ssommerfe 39*47703246SsommerfeBUILD_PROJECT=batch 40*47703246SsommerfeSYS_PRE_NIGHTLY=sys_pre_nightly 41*47703246Ssommerfe 42*47703246Ssommerfeexport BUILD_PROJECT SYS_PRE_NIGHTLY 43*47703246Ssommerfe 44*47703246Ssommerferenice -n 5 -p $$ 45