summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-07 11:28:29 -0300
committerRenato Botelho <renato@netgate.com>2015-09-07 11:28:29 -0300
commitfb1922270b62bc032acb47d91e78e8d45137a9c1 (patch)
tree2bc15f1c67947749a06f4dce787c51432418e87e /build.sh
parentc96b22422ca534ca1cf0ac075a1bab4e26b81d9b (diff)
downloadpfsense-fb1922270b62bc032acb47d91e78e8d45137a9c1.zip
pfsense-fb1922270b62bc032acb47d91e78e8d45137a9c1.tar.gz
Allow to use -a to select archs on all poudriere commands
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh21
1 files changed, 10 insertions, 11 deletions
diff --git a/build.sh b/build.sh
index 48367a6..dd06fff 100755
--- a/build.sh
+++ b/build.sh
@@ -71,8 +71,8 @@ usage() {
echo " --setup-poudriere - Install poudriere and create necessary jails and ports tree"
echo " --create-unified-patch - Create a big patch with all changes done on FreeBSD"
echo " --update-poudriere-jails [-a ARCH_LIST] - Update poudriere jails using current patch versions"
- echo " --update-poudriere-ports - Update poudriere ports tree"
- echo " --update-pkg-repo - Rebuild necessary ports on poudriere and update pkg repo"
+ echo " --update-poudriere-ports [-a ARCH_LIST]- Update poudriere ports tree"
+ echo " --update-pkg-repo [-a ARCH_LIST]- Rebuild necessary ports on poudriere and update pkg repo"
echo " --do-not-upload|-u - Do not upload pkgs or snapshots"
echo " -V VARNAME - print value of variable VARNAME"
exit 1
@@ -87,6 +87,7 @@ unset pfPORTTOBUILD
unset IMAGETYPE
unset DO_NOT_UPLOAD
unset SNAPSHOTS
+unset ARCH_LIST
BUILDACTION="images"
# Maybe use options for nocleans etc?
@@ -169,17 +170,15 @@ while test "$1" != ""; do
;;
--update-poudriere-jails)
BUILDACTION="update_poudriere_jails"
+ ;;
+ -a)
shift
- unset ARCH_LIST
- if [ "${1}" = "-a" ]; then
- shift
- if [ $# -eq 0 ]; then
- echo "-a needs extra parameter."
- echo
- usage
- fi
- export ARCH_LIST="${1}"
+ if [ $# -eq 0 ]; then
+ echo "-a needs extra parameter."
+ echo
+ usage
fi
+ export ARCH_LIST="${1}"
;;
--update-poudriere-ports)
BUILDACTION="update_poudriere_ports"
OpenPOWER on IntegriCloud