ssh_client: create a tarball of final objects

This helps people making a new build quickly have a tarball that can
be cached for posterity and integrated into nassh.

Change-Id: I4bd374de510e70e1fd17e5edc8a7a8c46835dc3a
Reviewed-on: https://chromium-review.googlesource.com/464007
Reviewed-by: Rob Ginda <rginda@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/chromeapps/ssh_client/build.sh b/chromeapps/ssh_client/build.sh
index 57ae027..0de474d 100755
--- a/chromeapps/ssh_client/build.sh
+++ b/chromeapps/ssh_client/build.sh
@@ -82,8 +82,10 @@
 
 if [[ $DEBUG == 1 ]]; then
   BUILD_ARGS="CXXFLAGS=-g -O0 -DDEBUG"
+  tarname="debug.tar"
 else
   BUILD_ARGS="CXXFLAGS=-g -O2 -DNDEBUG"
+  tarname="release.tar"
 fi
 
 if [[ $PNACL == 1 ]]; then
@@ -148,6 +150,7 @@
         hterm/plugin/nacl/lib64/
   done
 fi
+tar cf "${tarname}" hterm/plugin/ *.pexe *.dbg.nexe
 
 if [[ -f ../ssh_client.pem ]]; then
   /opt/google/chrome/chrome --pack-extension=hterm \