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

Last change on this file was 38215, checked in by davidb, 7 months ago

Rewritten to avoid the fact that 'diff' generates a non-zero return status, because the patch and original files are different

  • Property svn:executable set to *
File size: 1.3 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 echo "--------"
21 diff mirador-integration-annotations-gitfork/PATCHED-es-SimpleAnnotationServerV2Adapter.js \
22 mirador-integration-annotations-gitfork/node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js
23 echo "--------"
24 echo ""
25
26 /bin/cp mirador-integration-annotations-gitfork/PATCHED-es-SimpleAnnotationServerV2Adapter.js \
27 mirador-integration-annotations-gitfork/node_modules/mirador-annotations/es/SimpleAnnotationServerV2Adapter.js
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.