mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
24 lines
327 B
Bash
Executable File
24 lines
327 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
|
|
if make package; then
|
|
echo "0" > /tmp/status
|
|
else
|
|
echo "1" > /tmp/status
|
|
fi
|
|
|
|
exit 0
|