--- embedaddon/build.sh 2011/10/21 08:01:15 1.4.2.2 +++ embedaddon/build.sh 2011/10/31 13:00:21 1.5.2.1 @@ -4,16 +4,21 @@ # # ./build.sh [package] [os_specific_build_set] [prefix_dir] [other_make_opts ...] # -# $Id: build.sh,v 1.4.2.2 2011/10/21 08:01:15 misho Exp $ +# $Id: build.sh,v 1.5.2.1 2011/10/31 13:00:21 misho Exp $ # CMD=$1 MK=${2:-make} P=${3:-/tmp} +B=$4 PFX="--prefix ${P}" -shift; shift; shift; +shift; shift; shift; shift; echo ">>> Working script ${MK} into ${PFX}" +if [ -n "${B}" ]; then + PFX="${PFX} --build ${B}" +fi + TOP=$(pwd) echo ">>> TOPDIR=${TOP}" @@ -23,7 +28,8 @@ case $CMD in # [ ! -r config.log ] && \ ./configure --sysconfdir=/etc --libexecdir=/usr/libexec --with-ignore-dot \ --with-tty-tickets --with-env-editor --with-logincap \ - --with-long-otp-prompt --with-pam --with-logfac=local2 ${PFX} + --with-long-otp-prompt --with-pam --with-logfac=local2 \ + ${PFX} ${MK} clean ${MK} install src/sudo ${P}/bin