1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/Tools/portbuild/scripts/buildscript
1999-06-22 10:13:23 +00:00

31 lines
536 B
Bash
Executable File

#!/bin/sh
# usage: $0 DIRNAME
dir=$1
cd /tmp/depends
if [ "$(echo $(/bin/ls | wc -c))" != 0 ]; then
for i in *.tgz; do
pkg_add -f $i >/dev/null 2>&1 || exit 1
done
fi
cd $dir || exit 1
echo -n "maintained by: "
make maintainer
echo -n "build started at "
date
echo "================================================================"
if make package; then
echo "0" > /tmp/status
else
echo "1" > /tmp/status
fi
echo "================================================================"
echo -n "build ended at "
date
exit 0