Changeset 12882 in hybrid for branches/releng-10/nanobsd/tools


Ignore:
Timestamp:
Aug 24, 2014, 10:18:42 PM (10 years ago)
Author:
rick
Message:

Get rid of the broken update thingy (which is not used BTW) and make package building rather static

File:
1 edited

Legend:

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

    r12874 r12882  
    9494  fi
    9595
    96   # Check if package is already installed
    97   VERSION=`${MAKE} clean generate-plist check-already-installed | awk '/is already/ {print $2}'`
    98    if [ -n "$FORCE_REBUILD" ]; then
    99      p_warn "${PACKAGE} forcefullly rebuilding..."
    100      MAKE_OPTION='deinstall reinstall'
    101    elif [ "${VERSION}" = "An" ]; then
    102      p_warn "${PACKAGE} outdated, please update"
    103      #XXX: Better way to detect whether a package needs updating
    104      # An older version of lang/python26 is already installed (python26-2.6.2)
    105      #XXX: Broken updatin, please fix
    106      #p_warn "re-run package-build.sh to check for unmet ones done using:"
    107      #p_warn "$0"
    108      #MAKE_OPTION='deinstall reinstall'
    109      MAKE_OPTION=''
    110    elif [ -n "${VERSION}" ]; then
    111      VERSION=`echo ${VERSION} | sed 's/^.*-//g'`
    112      p_info ${PACKAGE} already installed at ${VERSION}
    113      MAKE_OPTION=''
    114    else
    115      p_info ${PACKAGE} not installed, installing...
    116      MAKE_OPTION='install'
    117    fi
    118 
    119   if [ -n "${MAKE_OPTION}" ]; then
    120     p_info Buildlog: $LOGFILE
    121     ${MAKE} ${MAKE_OPTION} 2>>$LOGFILE 1>> $LOGFILE
    122     if [ $? -ne 0 ]; then
    123        p_err building ${PACKAGE} FAILED, logging at $LOGFILE
    124        exit 1
    125     fi
    126   fi
    127   ${MAKE} package-links
    12896  PKGNAME=`${MAKE} extract-message | awk '{print $NF}'`
    129   ${MAKE} package-recursive PACKAGES=/root/nanobsd/pkg || exit 1
     97  ${MAKE} PACKAGES=/root/nanobsd/pkg package do-package package-links || exit 1
    13098
    13199  p_info Checking dependencies
Note: See TracChangeset for help on using the changeset viewer.