Changeset 12882 in hybrid for branches/releng-10/nanobsd/tools
- Timestamp:
- Aug 24, 2014, 10:18:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-10/nanobsd/tools/package-build.sh
r12874 r12882 94 94 fi 95 95 96 # Check if package is already installed97 VERSION=`${MAKE} clean generate-plist check-already-installed | awk '/is already/ {print $2}'`98 if [ -n "$FORCE_REBUILD" ]; then99 p_warn "${PACKAGE} forcefullly rebuilding..."100 MAKE_OPTION='deinstall reinstall'101 elif [ "${VERSION}" = "An" ]; then102 p_warn "${PACKAGE} outdated, please update"103 #XXX: Better way to detect whether a package needs updating104 # An older version of lang/python26 is already installed (python26-2.6.2)105 #XXX: Broken updatin, please fix106 #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}" ]; then111 VERSION=`echo ${VERSION} | sed 's/^.*-//g'`112 p_info ${PACKAGE} already installed at ${VERSION}113 MAKE_OPTION=''114 else115 p_info ${PACKAGE} not installed, installing...116 MAKE_OPTION='install'117 fi118 119 if [ -n "${MAKE_OPTION}" ]; then120 p_info Buildlog: $LOGFILE121 ${MAKE} ${MAKE_OPTION} 2>>$LOGFILE 1>> $LOGFILE122 if [ $? -ne 0 ]; then123 p_err building ${PACKAGE} FAILED, logging at $LOGFILE124 exit 1125 fi126 fi127 ${MAKE} package-links128 96 PKGNAME=`${MAKE} extract-message | awk '{print $NF}'` 129 ${MAKE} package-recursive PACKAGES=/root/nanobsd/pkg|| exit 197 ${MAKE} PACKAGES=/root/nanobsd/pkg package do-package package-links || exit 1 130 98 131 99 p_info Checking dependencies
Note:
See TracChangeset
for help on using the changeset viewer.