#!/usr/bin/sh # Setting environment variables UNAME_VERSION=`(uname -r) 2>/dev/null` || UNAME_VERSION=unknown; export UNAME_VERSION case "${UNAME_VERSION}" in "B.10.20") OS=hpux1020; export OS;; "5.5.1") OS=sol25; export OS;; *) echo "This platform should be test first."; exit 1;; esac SHL=/usr/bin/sh; export SHL OBJDIR=/hp12c/jim/_build/am${OS}tmp; export OBJDIR PKGSRC=/hp12c/jim/_src/GNU/automake/automake-1.5; export PKGSRC INSTDIR=/hp08/jim/${OS}/am15; export INSTDIR # Configuring: rm -rf $OBJDIR mkdir $OBJDIR rm -rf $INSTDIR mkdir $INSTDIR cd $OBJDIR touch $0.out echo "Configuring..." >> $0.out 2>&1 if $SHL $PKGSRC/configure --enable-shared --prefix=$INSTDIR >> $0.out 2>&1 then echo "Configuring...Done." >> $0.out 2>&1 else echo "Error occurs, batch job stop." >> $0.out 2>&1 exit 2 fi # Building: echo "Building..." >> $0.out 2>&1 if gmake >> $0.out 2>&1 then echo "Building...Done." >> $0.out 2>&1 else echo "Error occurs, batch job stop." >> $0.out 2>&1 exit 3 fi # Checking: echo "Checking..." >> $0.out 2>&1 if gmake check >> $0.out 2>&1 then echo "Checking...Done." >> $0.out 2>&1 else echo "Error occurs, batch job stop." >> $0.out 2>&1 exit 4 fi # Installing: echo "Installing..." >> $0.out 2>&1 if gmake install >> $0.out 2>&1 then echo "Installing...Done." >> $0.out 2>&1 else echo "Error occurs, batch job stop." >> $0.out 2>&1 exit 5 fi