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

Last change on this file since 37102 was 37102, checked in by davidb, 17 months ago

Added in patching PATCHED-es-SimpleAnnotationServerV2Adapter.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 && cd .. \
26 && echo ""
27
28 if [ $? = 0 ] ; then
29 echo ""
30 echo "Now run: "
31 echo " ./NPM-WEBPACK-MIRADOR.sh"
32 echo ""
33 else
34 echo "Failed to successfully run patch for:" 1>&2
35 echo " node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js" 1>&2
36 fi
37else
38 echo "Encountered an error, and so did not run patch for:" 1>&2
39 echo " node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js" 1>&2
40fi
41
42
43
Note: See TracBrowser for help on using the repository browser.