summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
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