jarg=`sysctl -n hw.ncpu`
+usrsrc=${USRSRC:-/usr/src}
+
if [ $? -ne 0 ]
then
usage
if [ ${UPDATE:=-0} -eq 1 ]; then
echo "updating ..."
- svn update /usr/src
+ svnlite update ${usrsrc}
[ ${?} == 1 ] && exit 1
fi
fi
echo building process on ${jarg} jobs
-cd /usr/src && make -j${jarg} buildworld && make -j${jarg} kernel KERNCONF=PEPINS \
+make -C ${usrsrc} -j${jarg} buildworld && make -C ${usrsrc} -j${jarg} kernel KERNCONF=PEPINS \
&& echo "Reboot the system."
-
mountro=`zfs get -H readonly llroot/ROOT/master | cut -w -f 3`
[ ${mountro} = "on" ] && zfs_mount
-mergemaster -p
-cd /usr/src && \
-make installworld && \
+usrsrc=${USRSRC:-/usr/src}
+
+mergemaster -p && \
+make -C ${usrsrc} installworld && \
mergemaster -iF && \
-make delete-old && \
+make -C ${usrsrc} delete-old && \
echo "reboot to delete old libs"
+# make -C ${usrsrc} -DBATCH_DELETE_OLD_FILES delete-old
+# make -C ${usrsrc} -DBATCH_DELETE_OLD_FILES delete-old-libs
if [ ${UPDATE:=-0} -eq 1 ]; then
echo "Updating port Tree"
- poudriere ports -p HEAD -u && portsnap auto
+ poudriere ports -p HEAD -u
fi
-echo "building lapinbilly"
+echo ------------------------------------------------------------------
+echo building lapinbilly
+echo ..................................................................
-poudriere bulk -J ${jarg}:2 -j lapinbilly -p HEAD -f /usr/local/etc/poudriere.d/port-list
+poudriere bulk -J ${jarg}:2 -j owncloud -p HEAD -f /usr/local/etc/poudriere.d/lp-list
-echo "building llanura"
+echo
+echo ------------------------------------------------------------------
+echo building llanura
+echo ..................................................................
-poudriere bulk -J ${jarg}:2 -j release11 -p HEAD -f /usr/local/etc/poudriere.d/port-list-llanura
+poudriere bulk -J ${jarg}:2 -j release11 -p HEAD -f /usr/local/etc/poudriere.d/llanura-list