build: Improve component enables usage text
authorJeff Juliano <jjuliano@nvidia.com>
Sat, 26 Aug 2017 14:22:22 +0000 (10:22 -0400)
committerMark Lobodzinski <mark@lunarg.com>
Mon, 28 Aug 2017 20:34:47 +0000 (14:34 -0600)
update_external_sources.bat
update_external_sources.sh

index 739ce53..3c4006c 100644 (file)
@@ -97,9 +97,13 @@ REM // ======== Parameter parsing ======== //
       echo     --no-sync           skip sync from git
       echo     --no-build          skip build
       echo.
+      echo   If any component enables are provided, only those components are enabled.
+      echo   If no component enables are provided, all components are enabled.
+      echo.
       echo   Sync uses git to pull a specific revision.
       echo   Build configures CMake, builds Release and Debug.
 
+
       goto:error
 
    :parameterContinue
index 30be3d3..43ebeba 100755 (executable)
@@ -96,8 +96,6 @@ function build_spirv-tools () {
    make -j $CORE_COUNT
 }
 
-# If any options are provided, just sync and compile those tools
-# If no options are provided, sync and build everything
 INCLUDE_GLSLANG=false
 INCLUDE_SPIRV_TOOLS=false
 NO_SYNC=false
@@ -134,11 +132,16 @@ do
       ;;
       *)
       echo "Unrecognized option: $option"
-      echo "Try the following:"
-      echo " -g | --glslang      # enable glslang"
-      echo " -s | --spirv-tools  # enable spirv-tools"
-      echo " --no-sync           # skip sync from git"
-      echo " --no-build          # skip build"
+      echo "Usage: update_external_sources.sh [options]"
+      echo "  Available options:"
+      echo "    -g | --glslang      # enable glslang component"
+      echo "    -s | --spirv-tools  # enable spirv-tools component"
+      echo "    --no-sync           # skip sync from git"
+      echo "    --no-build          # skip build"
+      echo "  If any component enables are provided, only those components are enabled."
+      echo "  If no component enables are provided, all components are enabled."
+      echo "  Sync uses git to pull a specific revision."
+      echo "  Build configures CMake, builds Release."
       exit 1
       ;;
   esac