Changeset 13058 in hybrid


Ignore:
Timestamp:
Jan 21, 2015, 7:36:02 AM (8 years ago)
Author:
rick
Message:

Allow creating single packages for debugging purposes and also yield if a package failed to build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-10/nanobsd/tools/package-build.sh

    r12903 r13058  
    1313DEBUG=${DEBUG:-'0'}
    1414DEP_CHECK_ONLY=${DEP_CHECK_ONLY:-'0'}
     15
     16# Find listing of packages to build
     17PKG_TO_BUILD=${PKG_TO_BUILD:-${PACKAGE_LIST}}
    1518
    1619# make options, for package building
     
    6366mkdir -p ${NANO_PACKAGE_DIR}
    6467
    65 
    6668# Build required packages
    6769MAKE_CONF=`mktemp -t $(basename $0)`
     
    6971MAKE="make __MAKE_CONF=$MAKE_CONF ${PKG_MAKE_ARGS}"
    7072BUILD_LIST=''
    71 set `echo ${PACKAGE_LIST} | xargs -n1 -I% echo $PORTSDIR/%`
     73set `echo ${PKG_TO_BUILD} | xargs -n1 -I% echo $PORTSDIR/%`
    7274while [ "$1" ]; do
    7375  PACKAGE=$1; shift
     
    9799  PKGBUILDLOG=/tmp/build.$$.`basename $PACKAGE`.log
    98100  p_info Packaging $PACKAGE ... details at $PKGBUILDLOG
    99   ${MAKE} PACKAGES=/root/nanobsd/pkg package do-package 2>&1 >$PKGBUILDLOG || exit 1
     101  ${MAKE} PACKAGES=/root/nanobsd/pkg package do-package 2>&1 >$PKGBUILDLOG
     102  if [ $? -ne 0 ]; then
     103    p_err "Failed to create $PKGNAME"
     104    exit 1
     105  fi
    100106
    101107  p_info Checking dependencies
Note: See TracChangeset for help on using the changeset viewer.