| 1 | #!/bin/sh |
| 2 | # |
| 3 | # Usually cron setups a really miserable environment, this script |
| 4 | # serves two purposes: |
| 5 | # 1. Setup a good environment for auto_compile. |
| 6 | # 2. Invoke auto_compile with the proper arguments for each site. |
| 7 | # |
| 8 | # The idea is to modify this script on a per-site basis and leave |
| 9 | # auto_compile unmodified. |
| 10 | # |
| 11 | |
| 12 | # Setup a proper path, remember that cvs, GNU make, perl5 and your |
| 13 | # compiler must be there. |
| 14 | PATH=.:$HOME/bin:/pkg/gnu/bin:/opt/SUNWspro/bin:$PATH |
| 15 | export PATH |
| 16 | |
| 17 | # Obvious enough. |
| 18 | CVSROOT=/project/cvs-repository |
| 19 | export CVSROOT |
| 20 | |
| 21 | # It could be a good idea to set CVSREAD this will make the staging |
| 22 | # area read-only, but our staging areas are public. |
| 23 | # CVSREAD=Y |
| 24 | # export CVSREAD |
| 25 | |
| 26 | # Here we define the cvs working copy for our staging area. |
| 27 | CHECKOUT=$HOME/head |
| 28 | |
| 29 | # In some sites the building directory differs from the cvs working |
| 30 | # copy. The directory is updated running |
| 31 | # $ACE_ROOT/bin/create_ace_build; but it must be setup manually the |
| 32 | # first time. |
| 33 | # TODO: Arrange for automatic creation of platform_macros.GNU & |
| 34 | # config.h. |
| 35 | BUILD=SUNCC |
| 36 | |
| 37 | # Here is where we store auto_compile output and keep a history of |
| 38 | # each run. |
| 39 | LOGDIR=$HOME/head/ACE_wrappers/build/$BUILD/auto_compile |
| 40 | |
| 41 | # Who do we send email when compilation (or anything else) fails. |
| 42 | ADMIN=PUT_YOUR_ADDRESS_HERE ; echo "You must edit this file" ; exit 0 |
| 43 | |
| 44 | # You must select a mail tool that can understand the -s option such |
| 45 | # as: |
| 46 | # |
| 47 | # /usr/bin/mailx Solaris |
| 48 | # /usr/bin/mailx HP-UX |
| 49 | # /usr/sbin/mailx IRIX |
| 50 | # /bin/mail Linux |
| 51 | |
| 52 | exec /pkg/gnu/bin/perl $CHECKOUT/ACE_wrappers/bin/auto_compile \ |
| 53 | $CHECKOUT $BUILD $LOGDIR $ADMIN /usr/bin/mailx |
| 54 |