samba: better fix for the last commit, only export JOBS if nonzero

This commit is contained in:
Juergen Daubert 2013-07-24 12:05:06 +02:00
parent f6fee17e74
commit 40a284ca7a

View File

@ -12,8 +12,8 @@ source=(http://www.samba.org/samba/ftp/stable/$name-$version.tar.gz \
build () {
cd $name-$version
test -n "$MAKEFLAGS" && \
export JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
test -n "$JOBS" && export JOBS="$JOBS"
./configure --enable-fhs \
--prefix=/usr \