source: gs3-extensions/structured-image/trunk/src/CLEAN-AND-TARUP-MIRADOR-SRC.sh@ 37063

Last change on this file since 37063 was 37063, checked in by davidb, 16 months ago

Script to simplify recreating the .tar.gz after code changes made to the fork

  • Property svn:executable set to *
File size: 670 bytes
Line 
1#!/bin/bash
2
3
4
5if [ ! -d mirador-integration-annotations-gitfork ] ; then
6 echo "No such directory 'mirador-integration-annotations-gitfork'" 1>&2
7 echo "=> Nothing to clean and tar-up" 1>&2
8 exit 1
9fi
10
11cd mirador-integration-annotations-gitfork \
12 && /bin/rm -rf node_modules package-lock.json webpack/dist-gs-annotations \
13 && cd ..
14
15if [ $? = 0 ] ; then
16 echo ""
17 echo "Away to freshly tar up: mirador-integration-annotations-gitfork.tar.gz"
18 echo ""
19
20 tar cvzf mirador-integration-annotations-gitfork.tar.gz mirador-integration-annotations-gitfork
21else
22 echo "Error encountered removed npm/webpack generated files" 1>&2
23fi
24
25
26
Note: See TracBrowser for help on using the repository browser.