summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-08-21 10:27:03 -0300
committerRenato Botelho <renato@netgate.com>2017-08-21 10:27:51 -0300
commit9369b633ffbca6a3979c75a4c44cfd382a3a4c52 (patch)
tree134ce2a00831aec45aab3081c26f1d2a271fce4f /build.sh
parent6380f9177d6a5020edbe50ecaaab7bba14e5fc03 (diff)
downloadpfsense-9369b633ffbca6a3979c75a4c44cfd382a3a4c52.zip
pfsense-9369b633ffbca6a3979c75a4c44cfd382a3a4c52.tar.gz
Add a new option to rsync snaps and pkg
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index a1027bc..8eb790c 100755
--- a/build.sh
+++ b/build.sh
@@ -64,6 +64,7 @@ usage() {
echo " --update-sources - Refetch FreeBSD sources"
echo " --rsync-repos - rsync pkg repos"
echo " --print-flags - Show current builder configuration"
+ echo " --rsync-snapshots - rsync snapshots images and pkg repos"
echo " --clean-builder - clean all builder used data/resources"
echo " --build-kernels - build all configured kernels"
echo " --build-kernel argument - build specified kernel. Example --build-kernel KERNEL_NAME"
@@ -131,6 +132,10 @@ while test "$1" != ""; do
BUILDACTION="rsync_repos"
export DO_NOT_SIGN_PKG_REPO=YES
;;
+ --rsync-snapshots)
+ BUILDACTION="rsync_snapshots"
+ export DO_NOT_SIGN_PKG_REPO=YES
+ ;;
--build-kernels)
BUILDACTION="buildkernels"
;;
@@ -295,6 +300,10 @@ case $BUILDACTION in
unset SKIP_FINAL_RSYNC
pkg_repo_rsync "${CORE_PKG_PATH}"
;;
+ rsync_snapshots)
+ unset SKIP_FINAL_RSYNC
+ snapshots_scp_files
+ ;;
update_pkg_repo)
if [ -z "${DO_NOT_UPLOAD}" -a ! -f /usr/local/bin/rsync ]; then
echo "ERROR: rsync is not installed, aborting..."
OpenPOWER on IntegriCloud