From 4dab76dec38b9a82857fa64389b14ea28f7b67c9 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Wed, 17 May 2023 18:10:27 -0400 Subject: [PATCH] add local git tar script --- build-eg/build_eg_tar.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 build-eg/build_eg_tar.sh diff --git a/build-eg/build_eg_tar.sh b/build-eg/build_eg_tar.sh new file mode 100755 index 0000000..4bb600d --- /dev/null +++ b/build-eg/build_eg_tar.sh @@ -0,0 +1,16 @@ +#!/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 -- 2.11.0