Changeset 13059 in hybrid for branches/releng-10/nanobsd
- Timestamp:
- Jan 21, 2015, 7:37:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-10/nanobsd/tools/package-build.sh
r13058 r13059 12 12 13 13 DEBUG=${DEBUG:-'0'} 14 DEP_CHECK_ONLY=${DEP_CHECK_ONLY:-'0'}15 14 16 15 # Find listing of packages to build … … 28 27 # HACK: install our own ports _inside_ the normal ports dir 29 28 cp -fR $WL_PORTSDIR/* $PORTSDIR || exit 1 30 31 # Pre-req dependency fixing32 p_info Checking whether there are currently unmet dependencies33 RETVAL=034 PKGS=`pkg info | awk '{print $1}'`35 for PKG in ${PKGS} ; do36 PKG_DEP_FAIL=""37 for PKGDEP in `pkg info -qr ${PKG} | awk '{print $2}'`; do38 pkg info -e ${PKGDEP}39 if [ $? -eq 1 ]; then40 PKG_DEP_FAIL="${PKG_DEP_FAIL} ${PKGDEP}"41 fi42 done43 if [ -n "${PKG_DEP_FAIL}" ]; then44 p_err Unmet dependencies found at $PKG, please fix manually:45 p_err `p_list ${PKG_DEP_FAIL}`46 RETVAL=147 fi48 done49 if [ $RETVAL -eq 1 ]; then50 exit 151 fi52 p_info Dependecy check ok53 54 if [ ${DEP_CHECK_ONLY} -eq 1 ]; then55 exit 056 fi57 echo ""58 59 29 60 30 # Cleanup of old packages
Note:
See TracChangeset
for help on using the changeset viewer.