Changeset 10612 in hybrid for branches/releng-9.0/nanobsd/tools/image
- Timestamp:
- Apr 29, 2012, 6:02:29 PM (13 years ago)
- Location:
- branches/releng-9.0/nanobsd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd
- Property svn:externals
-
old new 1 ports http://svn.wirelessleiden.nl/svn/code/ports 1
-
- Property svn:externals
-
branches/releng-9.0/nanobsd/tools/image
r10593 r10612 22 22 # rebuild - Rebuild NanoBSD (aka force rebuilding all) 23 23 # deploy on <node> [and reboot] - Deploy the image on node and reboot if needed 24 # ports update - Update the packages from ports 25 # ports force rebuild - Forcefully rebuilding all required packages 24 26 EOF 25 27 } … … 110 112 } 111 113 112 113 114 # 114 115 # Argument parsing … … 150 151 fi 151 152 deploy_image 153 elif [ "$1" = "ports" ]; then 154 if [ "$2" = "update" ]; then 155 # Fetch the latest details and provide listing of packages to be updated 156 portsnap fetch update || exit 1 157 158 # HACK: install our own ports _inside_ the normal ports dir 159 cp -fR $WL_PORTSDIR/* $PORTSDIR 160 161 # Make sure portmaster is present to update all ports 162 portmaster --version 1>/dev/null 2>/dev/null || make -C /usr/ports/ports-mgmt/portmaster BATCH=yes install clean || exit 1 163 164 # Update via portmaster 165 portmaster --no-confirm --update-if-newer -y -d -G `echo $PKG_MAKE_ARGS | xargs -n1 echo -m ` $PACKAGE_LIST || exit 1 166 167 . ${BASEDIR}/package-build.sh 168 elif [ "$2" = "force" -a "$3" = "rebuild" ]; then 169 export FORCE_REBUILD=1 170 . ${BASEDIR}/package-build.sh 171 else 172 shift 1 173 echo "Arguments Error - '$*'"; exit 128 174 fi 152 175 else 153 176 echo "Argument Error - '$1'"; exit 128
Note:
See TracChangeset
for help on using the changeset viewer.