Annotation of modules/damieng/graphical_editor/loncapa_daxe/build.sh, revision 1.3
1.1 damieng 1: #!/bin/sh
1.2 damieng 2:
3: # Create a distribution that can run in any browser, without the source code.
4: # Once the dist directory is on a web server, Daxe can be launched with a URL like
5: # http://localhost/dist/daxe.html?config=config/loncapa_config.xml
6:
7: # reset the dist directory
8:
9: rm -rf dist
10: mkdir dist
11:
12:
13: # compile LON-CAPA Daxe
14:
1.1 damieng 15: # NOTE: dart2js is in dart-sdk/bin, which should be on the PATH
1.2 damieng 16: dart2js --minify --out=dist/loncapa_daxe.min.js web/loncapa_daxe.dart
17: rm dist/*.js.map dist/*.deps
18:
19:
20: # copy Daxe files
21:
22: mkdir -p dist/packages/daxe
23: # note the / at the end of the paths, it copies only the contents
24: rsync -a ../daxe/lib/ dist/packages/daxe/ --exclude CVS --exclude '*.dart' --exclude packages --exclude src
25:
26:
27: # copy LON-CAPA Daxe files
28:
29: cp daxe.html dist/
30:
1.3 ! damieng 31: rsync -a web/ dist/ --exclude CVS --exclude '*.dart' --exclude packages --exclude tests --exclude nodes --exclude '*.html' --exclude 'XHTML_config.xml' --exclude 'xhtml1-strict.xsd' --exclude 'jsme'
1.2 damieng 32:
33:
1.3 ! damieng 34: # extract JSME
! 35:
! 36: unzip -d dist 'JSME_2015-03-03_xsiframe.zip'
! 37: mv 'dist/JSME_2015-03-03_xsiframe/jsme' dist/
! 38: rm -r 'dist/JSME_2015-03-03_xsiframe'
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>