diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1998-12-28 13:27:27 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1998-12-28 13:27:27 +0000 |
commit | 75ec193fb8c4c78a9bce851f9bb1a8e421dc920c (patch) | |
tree | 4aff6fef7928695e79c8b2d6d0eb6dc3010d9880 /Tools/portbuild/scripts/buildscript | |
parent | A dummy port to create a package of static Motif libs and include (diff) |
The scripts to allow parallel package building. See the README file in
Tools/portbuild for details.
Note that this is still a major work in progress. I probably forgot
something but I need to go to sleep. At least it works here (most of
the time :).
Notes
Notes:
svn path=/head/; revision=15682
Diffstat (limited to 'Tools/portbuild/scripts/buildscript')
-rwxr-xr-x | Tools/portbuild/scripts/buildscript | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript new file mode 100755 index 000000000000..fb7909ddcebb --- /dev/null +++ b/Tools/portbuild/scripts/buildscript @@ -0,0 +1,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 |