source: gs3-extensions/structured-image/trunk/src/NPM-INSTALL-MIRADOR.sh@ 37112

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

Range of updates: main one being to run INSTALL-JS.sh in 'src' to install the Javascript file document_extra.js

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3echo ""
4echo "Away to install npm dependencies for:"
5echo " mirador3"
6echo " mirador-annotations"
7echo " mirador-image-tools"
8echo ""
9
10cd mirador-integration-annotations-gitfork \
11 && npm install && cd ..
12
13
14if [ $? = 0 ] ; then
15 echo ""
16 echo "****"
17 echo "* Patching mirador-annotations/es/SimpleAnnotationServerV2Adapter.js"
18 echo "****"
19
20 cd mirador-integration-annotations-gitfork \
21 && echo "--------" \
22 && diff PATCHED-es-SimpleAnnotationServerV2Adapter.js node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js \
23 && /bin/cp PATCHED-es-SimpleAnnotationServerV2Adapter.js node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js \
24 && echo "--------" \
25 && echo "" \
26 && cd ..
27
28
29 if [ $? = 0 ] ; then
30 echo ""
31 echo "Now run: "
32 echo " ./NPM-WEBPACK-MIRADOR.sh"
33 echo ""
34 else
35 echo "Failed to successfully run patch for:" 1>&2
36 echo " node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js" 1>&2
37 fi
38else
39 echo "Encountered an error, and so did not run patch for:" 1>&2
40 echo " node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js" 1>&2
41fi
42
43
44
Note: See TracBrowser for help on using the repository browser.