summaryrefslogtreecommitdiff
path: root/Tools/portbuild/scripts/buildscript
blob: fb7909ddcebb2f1355926a80fd062419c705c75b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
if make package; then
  echo "0" > /tmp/status
else
  echo "1" > /tmp/status
fi

exit 0