summaryrefslogtreecommitdiff
path: root/bin/autoconf_compile_wrapper
blob: 3ffddafb1a1dbd91965b30d7f7ad17838882c601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /bin/sh
#
# $Id$
#
# Usually cron setups a really miserable enviroment, this script
# serves two purposes:
# 1. Setup a good enviroment for auto_compile.
# 2. Invoke auto_compile with the proper arguments for each site.
#
# The idea is to modify this script on a per-site basis and leave
# auto_compile unmodified.
#

# Setup a proper path, remember that cvs, make, perl5 and your
# compiler must be there.
PATH=.:$HOME/bin:/pkg/gnu/bin:/opt/SUNWspro/bin:$PATH
export PATH

# Obvious enough.
CVSROOT=/project/cvs-repository
export CVSROOT

# It could be a good idea to set CVSREAD this will make the staging
# area read-only, but our staging areas are public.
# CVSREAD=Y
# export CVSREAD

# Here we define the cvs working copy for our staging area.
CHECKOUT=$HOME/head

# In some sites the building directory differs from the cvs working
# copy. The directory is updated running
# $ACE_ROOT/bin/create_ace_build; but it must be setup manually the
# first time.
# TODO: Arrange for automatic creation of platform_macros.GNU &
# config.h.
BUILD=SUNCC

# Here is where we store autoconf_compile output and keep a history of
# each run.
LOGDIR=$HOME/head/ACE_wrappers/build/$BUILD/autoconf_compile

# Who do we send email when compilation (or anything else) fails.
ADMIN=PUT_YOUR_ADDRESS_HERE ; echo "You must edit this file" ; exit 0

# You must select a mail tool that can understand the -s option such
# as:
#
# /usr/bin/mailx 		Solaris
# /usr/bin/mailx 		HP-UX
# /usr/sbin/mailx		IRIX
# /bin/mail 			Linux

exec /pkg/gnu/bin/perl $CHECKOUT/ACE_wrappers/bin/autoconf_compile \
    $CHECKOUT $BUILD $LOGDIR $ADMIN /usr/bin/mailx