summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-03-15 21:01:02 -0300
committerRenato Botelho <renato@netgate.com>2016-03-15 21:01:02 -0300
commited44fe761d53f41afbc7b33c95fe04af27c3441d (patch)
treef42ccc9ff722f00f9738b231456396f946877be5 /build.sh
parentcc28d1f3f152c0dfc73f4340a70eee4ffd3e3723 (diff)
downloadpfsense-ed44fe761d53f41afbc7b33c95fe04af27c3441d.zip
pfsense-ed44fe761d53f41afbc7b33c95fe04af27c3441d.tar.gz
Improve readability
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh58
1 files changed, 33 insertions, 25 deletions
diff --git a/build.sh b/build.sh
index e7526ce..e6f2a8d 100755
--- a/build.sh
+++ b/build.sh
@@ -406,31 +406,39 @@ for _IMGTOBUILD in $_IMAGESTOBUILD; do
# Clean up items that should be cleaned each run
staginareas_clean_each_run
- if [ "${_IMGTOBUILD}" = "iso" ]; then
- create_iso_image
- elif [ "${_IMGTOBUILD}" = "memstick" ]; then
- create_memstick_image
- elif [ "${_IMGTOBUILD}" = "memstickserial" ]; then
- create_memstick_serial_image
- elif [ "${_IMGTOBUILD}" = "memstickadi" ]; then
- create_memstick_adi_image
- elif [ "${_IMGTOBUILD}" = "fullupdate" ]; then
- create_Full_update_tarball
- elif [ "${_IMGTOBUILD}" = "nanobsd" -o "${_IMGTOBUILD}" = "nanobsd-vga" ]; then
- if [ "${TARGET}" = "i386" -a "${_IMGTOBUILD}" = "nanobsd" ]; then
- export DEFAULT_KERNEL=${DEFAULT_KERNEL_NANOBSD:-"${PRODUCT_NAME}_wrap"}
- elif [ "${TARGET}" = "i386" -a "${_IMGTOBUILD}" = "nanobsd-vga" ]; then
- export DEFAULT_KERNEL=${DEFAULT_KERNEL_NANOBSDVGA:-"${PRODUCT_NAME}_wrap_vga"}
- elif [ "${TARGET}" = "amd64" ]; then
- export DEFAULT_KERNEL=${DEFAULT_KERNEL_NANOBSD:-"${PRODUCT_NAME}"}
- fi
- # Create the NanoBSD disk image
- create_nanobsd_diskimage ${_IMGTOBUILD} "${FLASH_SIZE}"
- elif [ "${_IMGTOBUILD}" = "ova" ]; then
- install_pkg_install_ports ${PRODUCT_NAME}-vmware
- create_ova_image
- install_pkg_install_ports
- fi
+ case "${_IMGTOBUILD}" in
+ iso)
+ create_iso_image
+ ;;
+ memstick)
+ create_memstick_image
+ ;;
+ memstickserial)
+ create_memstick_serial_image
+ ;;
+ memstickadi)
+ create_memstick_adi_image
+ ;;
+ fullupdate)
+ create_Full_update_tarball
+ ;;
+ nanobsd|nanobsd-vga)
+ if [ "${TARGET}" = "i386" -a "${_IMGTOBUILD}" = "nanobsd" ]; then
+ export DEFAULT_KERNEL=${DEFAULT_KERNEL_NANOBSD:-"${PRODUCT_NAME}_wrap"}
+ elif [ "${TARGET}" = "i386" -a "${_IMGTOBUILD}" = "nanobsd-vga" ]; then
+ export DEFAULT_KERNEL=${DEFAULT_KERNEL_NANOBSDVGA:-"${PRODUCT_NAME}_wrap_vga"}
+ elif [ "${TARGET}" = "amd64" ]; then
+ export DEFAULT_KERNEL=${DEFAULT_KERNEL_NANOBSD:-"${PRODUCT_NAME}"}
+ fi
+ # Create the NanoBSD disk image
+ create_nanobsd_diskimage ${_IMGTOBUILD} "${FLASH_SIZE}"
+ ;;
+ ova)
+ install_pkg_install_ports ${PRODUCT_NAME}-vmware
+ create_ova_image
+ install_pkg_install_ports
+ ;;
+ esac
done
core_pkg_create_repo
OpenPOWER on IntegriCloud