Skip to content

Commit e48f041

Browse files
committedAug 21, 2017
Add a new option to rsync snaps and pkg
1 parent b6565b4 commit e48f041

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎build.sh

+9
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ usage() {
3030
echo " --setup - Install required repo and ports builder require to work"
3131
echo " --update-sources - Refetch FreeBSD sources"
3232
echo " --rsync-repos - rsync pkg repos"
33+
echo " --rsync-snapshots - rsync snapshots images and pkg repos"
3334
echo " --clean-builder - clean all builder used data/resources"
3435
echo " --build-kernels - build all configured kernels"
3536
echo " --build-kernel argument - build specified kernel. Example --build-kernel KERNEL_NAME"
@@ -84,6 +85,10 @@ while test "$1" != ""; do
8485
BUILDACTION="rsync_repos"
8586
export DO_NOT_SIGN_PKG_REPO=YES
8687
;;
88+
--rsync-snapshots)
89+
BUILDACTION="rsync_snapshots"
90+
export DO_NOT_SIGN_PKG_REPO=YES
91+
;;
8792
--build-kernels)
8893
BUILDACTION="buildkernels"
8994
;;
@@ -229,6 +234,10 @@ case $BUILDACTION in
229234
unset SKIP_FINAL_RSYNC
230235
pkg_repo_rsync "${CORE_PKG_PATH}"
231236
;;
237+
rsync_snapshots)
238+
unset SKIP_FINAL_RSYNC
239+
snapshots_scp_files
240+
;;
232241
update_pkg_repo)
233242
if [ -z "${DO_NOT_UPLOAD}" -a ! -f /usr/local/bin/rsync ]; then
234243
echo "ERROR: rsync is not installed, aborting..."

0 commit comments

Comments
 (0)
Please sign in to comment.