--- /dev/null
+#!/bin/bash
+
+#git-archive-all --no-export-ignore --verbose --prefix Evergreen-ILS-3.8.0 --force-submodules --include Open-ILS/web/ ~/Evergreen-ILS-3.8.0.tar.gz
+
+VERSION="$1"
+HOME_DIR="/home/csharp"
+REPO_DIR="$HOME_DIR/pines"
+GIT_ARCHIVE_ALL="$HOME_DIR/.local/bin/git-archive-all"
+
+# clean up
+rm -rf $REPO_DIR/Open-ILS/src/eg2/node_modules
+rm -rf $REPO_DIR/Open-ILS/web/js/ui/default/staff/node_modules
+cd $REPO_DIR/Open-ILS/src/eg2 && npm install && ng build --configuration production
+cd $REPO_DIR/Open-ILS/web/js/ui/default/staff && npm install && npm run build-prod
+cd $REPO_DIR/Open-ILS/web/opac/deps && npm install
+cd $REPO_DIR && $GIT_ARCHIVE_ALL --no-export-ignore --verbose --prefix Evergreen-ILS-${VERSION} --force-submodules --include Open-ILS/web/ $HOME_DIR/Evergreen-ILS-${VERSION}.tar.gz