{endterm}
 
 {subsection: build_workspace.bat}
-This script copies a SHA from the current git repository to submit-3.batlab.org and submits it as a workspace build.  This script depends on a shell script in ~johnkn/workspace on submit-3. arguments are <sha1>|index [<description> [all|win|win+|warn]]
+This script copies a SHA from the current git repository to submit-3.batlab.org and submits it as a workspace build.  This script depends on a shell script in ~johnkn/workspace on submit-3. arguments are:
+
+*: =index | <SHA1>=  The commit to build, "index" means use the SHA from git write-tree
+*: =<description>= (optional) Description for the workspace build
+*: =all | win | win+ | warn= (optional), passed on to build_workspace script on submit-3
 {file: build_workspace.bat}
 @echo off
 @setlocal
@@ -389,3 +393,85 @@
 cd d:\scratch\condor\master
 ..\build_workspace index description all
 {endterm}
+
+{subsection: build_workspace (shell script)}
+This bash script invokes nmi_condor_submit It should be executed while at the root of a git clone or archive on one of the batlab submit machines. Arguments are optional the first is the description and second is shorthand for combinations of platform. default is to build on Win8 and Fedora21
+
+*: =<description>= the description string
+*: =all= build on all platforms
+*: =win= build on all windows platforms
+*: =win+= build on windows and fedora
+*: =warn|fedora= build on fedora
+*: =fast= build on fedora and solaris
+*: =deb= build on all debian
+{file: build_workspace}
+#!/bin/bash
+
+TAG="$1"
+PLATFORMS="x86_64_Windows8,x86_64_Fedora21"
+
+if [[ $2 = "all" || $2 = "ALL" ]]
+then
+   PLATFORMS="all"
+fi
+
+if [[ $2 = "win" || $2 = "WIN" ]]
+then
+   PLATFORMS="x86_64_Windows7,x86_64_Windows8"
+fi
+
+if [[ $2 = "win+" || $2 = "WIN+" ]]
+then
+   PLATFORMS="x86_64_Windows7,x86_64_Windows8,x86_64_Fedora21,x86_64_Fedora22"
+fi
+
+if [[ $2 = "win8" || $2 = "WIN8" ]]
+then
+   PLATFORMS="x86_64_Windows8"
+fi
+
+if [[ $2 = "fedora" || $2 = "warn" || $2 == "fast" || $2 == "winfast" ]]
+then
+   PLATFORMS="x86_64_Fedora21,x86_64_Fedora22"
+  if [[ $2 == "fast" || $2 == "winfast" ]]
+  then
+     PLATFORMS="${PLATFORMS},x86_64_Solaris11"
+  fi
+  if [[ $2 == "winfast" ]]
+  then
+     PLATFORMS="${PLATFORMS},x86_64_Windows7,x86_64_Windows8"
+  fi
+fi
+
+if [[ $2 = "f22" ]]
+then
+   PLATFORMS="x86_64_Fedora22"
+fi
+
+if [[ $2 = "deb" ]]
+then
+   PLATFORMS="x86_64_Debian6,x86_64_Debian7,x86_64_Debian8"
+fi
+
+pwd
+if [ -d "nmi_tools" ]
+then
+   echo "building temporary workspace"
+   pushd nmi_tools
+else
+   echo "building main workspace"
+   pushd ~johnkn/workspace/CONDOR_SRC/nmi_tools
+fi
+pwd
+
+./condor_nmi_submit --build --git --notify-fail-only --workspace=.. --desc="$TAG" -platforms="$PLATFORMS"
+echo ./condor_nmi_submit --build --git --notify-fail-only --workspace=.. --desc=\"$TAG\" -platforms=\"$PLATFORMS\"
+pwd
+popd
+{endfile}
+Example
+{term}
+cp build_workspace ~/workspace
+cd ~/workspace/wkNNN
+../build_workspace
+{endterm}