1998-12-28 13:27:27 +00:00
|
|
|
#!/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
|
1999-09-22 00:57:02 +00:00
|
|
|
echo "maintained by: $(make maintainer)"
|
|
|
|
echo "build started at $(date)"
|
1999-06-22 10:13:23 +00:00
|
|
|
echo "================================================================"
|
1999-09-22 00:57:02 +00:00
|
|
|
|
|
|
|
xvfb=0
|
|
|
|
if which -s Xvfb; then
|
|
|
|
xvfb=1
|
|
|
|
pid=$$
|
|
|
|
X11BASE=$(which Xvfb | sed -e 's./bin/Xvfb..')
|
|
|
|
Xvfb :${pid} -fp ${X11BASE}/lib/X11/fonts/misc &
|
|
|
|
DISPLAY=:${pid}
|
|
|
|
export DISPLAY
|
|
|
|
fi
|
|
|
|
|
1998-12-28 13:27:27 +00:00
|
|
|
if make package; then
|
|
|
|
echo "0" > /tmp/status
|
|
|
|
else
|
|
|
|
echo "1" > /tmp/status
|
|
|
|
fi
|
|
|
|
|
1999-09-22 00:57:02 +00:00
|
|
|
if [ ${xvfb} = 1 ]; then
|
|
|
|
kill $(jobid %1)
|
|
|
|
fi
|
|
|
|
|
1999-06-22 10:13:23 +00:00
|
|
|
echo "================================================================"
|
|
|
|
echo -n "build ended at "
|
|
|
|
date
|
|
|
|
|
1998-12-28 13:27:27 +00:00
|
|
|
exit 0
|