#!/bin/sh
# Set initial variables:
CWD=`pwd`
if [ "$TMP" = "" ]; then
  TMP=/tmp
fi
if [ ! -d $TMP ]; then
  mkdir -p $TMP # location to build the source
fi
cd $TMP
tar xzvf $CWD/automake-1.4-p4.tar.gz
cd automake-1.4-p4
./configure --prefix=/usr
make
make install
mkdir -p /usr/doc/automake-1.4-p4
cp -a AUTHORS COPYING INSTALL NEWS README THANKS \
    TODO /usr/doc/automake-1.4-p4
chown root.root /usr/doc/automake-1.4-p4/*
