[BACK]Return to build-client-start CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pbulk / files / pbulk / scripts

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / pbulk / files / pbulk / scripts / build-client-start (download)

Revision 1.4, Sun Dec 18 22:41:12 2016 UTC (7 years, 3 months ago) by joerg
Branch: MAIN
Changes since 1.3: +2 -1 lines

pbulk-0.64:
Ensure to reset port after each loop, so that "client" and "client:port"
notation can be mixed.

#!@SH@
# $NetBSD: build-client-start,v 1.4 2016/12/18 22:41:12 joerg Exp $

. @PBULK_CONFIG@

set -e

if [ "${config_version}" != "@PBULK_CONFIG_VERSION@" ]; then
	echo "Your configuration has version ${config_version}."
	echo "This version of pbulk expects version @PBULK_CONFIG_VERSION@."
	exit 1
fi

for client in ${build_clients}; do
	case ${client} in 
	*:*)
		port="-p ${client##*:}"
		client=${client%%:*}
		;;
	*)
		port=
		;;
	esac
	ssh $port $client "${pbuild} -c ${master_port_build} -b ${pbuild_script}" &
done