From 75ec193fb8c4c78a9bce851f9bb1a8e421dc920c Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Mon, 28 Dec 1998 13:27:27 +0000 Subject: 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 :). --- Tools/portbuild/scripts/buildscript | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 Tools/portbuild/scripts/buildscript (limited to 'Tools/portbuild/scripts/buildscript') 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 -- cgit v1.2.3