version 1.4, 2025/01/21 22:35:31
|
version 1.6, 2025/03/10 17:08:20
|
Line 108 do
|
Line 108 do
|
esac |
esac |
done |
done |
|
|
|
if [ "${ACTION}" = "" ] |
|
then |
|
echo "${PROGN}: no action specified" |
|
exit 1 |
|
fi |
|
|
if [ ! -z "${PROJECT}" ] |
if [ ! -z "${PROJECT}" ] |
then |
then |
PROJECT_BASE="${BUILDMAN_BASE}/projects/${PROJECT}" |
PROJECT_BASE="${BUILDMAN_BASE}/projects/${PROJECT}" |
Line 119 then
|
Line 125 then
|
|
|
if [ ! -d "${PROJECT_BASE}" ] |
if [ ! -d "${PROJECT_BASE}" ] |
then |
then |
echo "$PROGN error: project ${PROJECT} not defined" |
echo "$PROGN error: project ${PROJECT} not defined [${PROJECT_BASE}]" |
exit 1 |
exit 1 |
fi |
fi |
fi |
fi |
Line 134 case $ACTION in
|
Line 140 case $ACTION in
|
;; |
;; |
|
|
h|hosts) |
h|hosts) |
ls -l "${BUILDMAN_BASE}/projects/${PROJECT}/hosts" |
BHOSTS=`ls -1 "${BUILDMAN_BASE}/projects/${PROJECT}/hosts"` |
|
for BHOST in ${BHOSTS} |
|
do |
|
echo ${BHOST} |
|
done |
;; |
;; |
|
|
*) |
*) |
Line 201 case $ACTION in
|
Line 211 case $ACTION in
|
exit 1 |
exit 1 |
fi |
fi |
|
|
PLSTR="${BUILD_HOST}:${OPTIONS}" |
PLSTR="${BUILD_HOST}:${OPTIONS}:buildman::" |
H_PLATFORM=`echo ${PLSTR} | cut -d: -f2` |
H_PLATFORM=`echo ${PLSTR} | cut -d: -f2` |
H_VERSION=`echo ${PLSTR} | cut -d: -f3` |
H_VERSION=`echo ${PLSTR} | cut -d: -f3` |
H_ARCH=`echo ${PLSTR} | cut -d: -f4` |
H_ARCH=`echo ${PLSTR} | cut -d: -f4` |
Line 259 case $ACTION in
|
Line 269 case $ACTION in
|
exit 1 |
exit 1 |
fi |
fi |
|
|
BUILD_BASE="${PROJECT_BASE}/hosts/${BUILD_HOST}" |
if [ "${BUILD_HOST}" != '*' ] |
|
then |
|
BUILD_BASE="${PROJECT_BASE}/hosts/${BUILD_HOST}" |
|
|
|
if [ ! -d "${BUILD_BASE}" ] |
|
then |
|
echo "$PROGN error: build host ${BUILD_HOST} not configured" |
|
exit 1 |
|
fi |
|
|
|
BUILD_WANTED="${PROJECT_BASE}/hosts/${BUILD_HOST}/build-wanted" |
|
|
if [ ! -d "${BUILD_BASE}" ] |
if [ -f "${BUILD_WANTED}" ] |
then |
then |
echo "$PROGN error: build host ${BUILD_HOST} not configured" |
echo "$PROGN error: build already requested" |
exit 1 |
exit 1 |
fi |
fi |
|
|
BUILD_WANTED="${PROJECT_BASE}/hosts/${BUILD_HOST}/build-wanted" |
|
|
|
if [ -f "${BUILD_WANTED}" ] |
touch "${BUILD_WANTED}" |
then |
echo "$PROGN: build of project ${PROJECT} requested on build host ${BUILD_HOST}" |
echo "$PROGN error: build already requested" |
else |
exit 1 |
BHOSTS=`ls -1 "${BUILDMAN_BASE}/projects/${PROJECT}/hosts"` |
|
for BUILD_HOST in ${BHOSTS} |
|
do |
|
BUILD_BASE="${PROJECT_BASE}/hosts/${BUILD_HOST}" |
|
|
|
if [ ! -d "${BUILD_BASE}" ] |
|
then |
|
echo "$PROGN error: build host ${BUILD_HOST} not configured" |
|
exit 1 |
|
fi |
|
|
|
BUILD_WANTED="${PROJECT_BASE}/hosts/${BUILD_HOST}/build-wanted" |
|
|
|
if [ -f "${BUILD_WANTED}" ] |
|
then |
|
echo "$PROGN error: build already requested" |
|
exit 1 |
|
fi |
|
|
|
touch "${BUILD_WANTED}" > /dev/null 2>&1 |
|
if [ $? = 0 ] |
|
then |
|
echo "$PROGN: build of project ${PROJECT} requested on build host ${BUILD_HOST}" |
|
else |
|
echo "$PROGN: error requesting build of ${PROJECT} on build host ${BUILD_HOST}" |
|
fi |
|
done |
fi |
fi |
|
|
touch "${BUILD_WANTED}" |
|
echo "$PROGN: build of project ${PROJECT} requested on build host ${BUILD_HOST}" |
|
;; |
;; |
|
|
esac |
esac |