]> gitweb.factorcode.org Git - factor.git/commitdiff
build.sh/build.cmd: support both latest and update
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 30 Mar 2016 01:44:32 +0000 (18:44 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Wed, 30 Mar 2016 01:44:32 +0000 (18:44 -0700)
build.cmd
build.sh

index b0430bbfb7df6014da728ae3e1a9765bb71bbfff..918a12e3c59a80b17bbbccd71a7e403f8fc765cc 100644 (file)
--- a/build.cmd
+++ b/build.cmd
@@ -7,6 +7,8 @@ if "%1"=="/?" (
     set _bootimage_version=latest
 ) else if "%1"=="latest" (
     set _bootimage_version=latest
+) else if "%1"=="update" (
+    set _bootimage_version=latest
 ) else if "%1"=="clean" (
     set _bootimage_version=clean
 ) else goto usage
index e2677737adf44e50edae31945fdae329948bf0d3..3424ba1a79962a626c7c5f451472f0253f96908a 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -681,7 +681,7 @@ usage() {
     $ECHO "  deps-macosx - install git on MacOSX using port"
     $ECHO "  self-update - git pull, recompile, make local boot image, bootstrap"
     $ECHO "  quick-update - git pull, refresh-all, save"
-    $ECHO "  update - git pull, recompile, download a boot image, bootstrap"
+    $ECHO "  update|latest - git pull, recompile, download a boot image, bootstrap"
     $ECHO "  bootstrap - bootstrap with existing boot image"
     $ECHO "  net-bootstrap - recompile, download a boot image, bootstrap"
     $ECHO "  make-target - find and print the os-arch-cpu string"
@@ -713,6 +713,7 @@ case "$1" in
     self-update) update; make_boot_image; bootstrap;;
     quick-update) update; refresh_image ;;
     update) update; download_and_bootstrap ;;
+    latest) update; download_and_bootstrap ;;
     bootstrap) get_config_info; bootstrap ;;
     net-bootstrap) net_bootstrap_no_pull ;;
     make-target) FIND_MAKE_TARGET=true; ECHO=false; find_build_info; exit_script ;;