1366 "$DMAKE_MAJOR" -eq 7 -a "$DMAKE_MINOR" -lt 4 \) ]; then
1367 if [ -z "$DMAKE_VERSION" ]; then
1368 echo "$MAKE is missing."
1369 exit 1
1370 fi
1371 echo `whence $MAKE`" version is:"
1372 echo " ${DMAKE_VERSION}"
1373 cat <<EOF
1374
1375 This version may not be safe for use. Either set TEAMWARE to a better
1376 path or (if you really want to use this version of dmake anyway), add
1377 the following to your environment to disable this check:
1378
1379 CHECK_DMAKE=n
1380 EOF
1381 exit 1
1382 fi
1383 export PATH
1384 export MAKE
1385
1386 if [[ "$O_FLAG" = y ]]; then
1387 export TONICBUILD=""
1388 else
1389 export TONICBUILD="#"
1390 fi
1391
1392 if [ "${SUNWSPRO}" != "" ]; then
1393 PATH="${SUNWSPRO}/bin:$PATH"
1394 export PATH
1395 fi
1396
1397 hostname=$(uname -n)
1398 if [[ $DMAKE_MAX_JOBS != +([0-9]) || $DMAKE_MAX_JOBS -eq 0 ]]
1399 then
1400 maxjobs=
1401 if [[ -f $HOME/.make.machines ]]
1402 then
1403 # Note: there is a hard tab and space character in the []s
1404 # below.
1405 egrep -i "^[ ]*$hostname[ \.]" \
1406 $HOME/.make.machines | read host jobs
1407 maxjobs=${jobs##*=}
1408 fi
1409
1410 if [[ $maxjobs != +([0-9]) || $maxjobs -eq 0 ]]
1411 then
|
1366 "$DMAKE_MAJOR" -eq 7 -a "$DMAKE_MINOR" -lt 4 \) ]; then
1367 if [ -z "$DMAKE_VERSION" ]; then
1368 echo "$MAKE is missing."
1369 exit 1
1370 fi
1371 echo `whence $MAKE`" version is:"
1372 echo " ${DMAKE_VERSION}"
1373 cat <<EOF
1374
1375 This version may not be safe for use. Either set TEAMWARE to a better
1376 path or (if you really want to use this version of dmake anyway), add
1377 the following to your environment to disable this check:
1378
1379 CHECK_DMAKE=n
1380 EOF
1381 exit 1
1382 fi
1383 export PATH
1384 export MAKE
1385
1386 if [ "${SUNWSPRO}" != "" ]; then
1387 PATH="${SUNWSPRO}/bin:$PATH"
1388 export PATH
1389 fi
1390
1391 hostname=$(uname -n)
1392 if [[ $DMAKE_MAX_JOBS != +([0-9]) || $DMAKE_MAX_JOBS -eq 0 ]]
1393 then
1394 maxjobs=
1395 if [[ -f $HOME/.make.machines ]]
1396 then
1397 # Note: there is a hard tab and space character in the []s
1398 # below.
1399 egrep -i "^[ ]*$hostname[ \.]" \
1400 $HOME/.make.machines | read host jobs
1401 maxjobs=${jobs##*=}
1402 fi
1403
1404 if [[ $maxjobs != +([0-9]) || $maxjobs -eq 0 ]]
1405 then
|