Set MAKEJOBS in cryptest-pem.sh

This commit is contained in:
Jeffrey Walton 2024-02-05 10:54:48 -05:00
parent 93208e8393
commit 5cf87aed66
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -17,6 +17,9 @@ SED=sed
AWK=awk AWK=awk
MAKE=make MAKE=make
# Set make jobs to 2 if not set
MAKEJOBS="${MAKEJOBS:-2}"
# Fixup, Solaris and friends # Fixup, Solaris and friends
if [[ (-d /usr/xpg4/bin) ]]; then if [[ (-d /usr/xpg4/bin) ]]; then
SED=/usr/xpg4/bin/sed SED=/usr/xpg4/bin/sed
@ -87,7 +90,7 @@ echo ""
"$MAKE" clean &>/dev/null "$MAKE" clean &>/dev/null
if ! "$MAKE" -j 2; then if ! "$MAKE" -j ${MAKEJOBS}; then
echo "make failed." echo "make failed."
exit 1 exit 1
fi fi