Annotation of modules/damieng/graphical_editor/loncapa_daxe/build.sh, revision 1.7

1.1       damieng     1: #!/bin/sh
1.2       damieng     2: 
                      3: # Create a distribution that can run in any browser, without the source code.
1.5       damieng     4: # Once the daxe directory is on a web server, Daxe can be launched with a URL like
                      5: # http://localhost/daxe/daxe.html?config=config/loncapa_config.xml
1.2       damieng     6: 
1.4       damieng     7: 
1.5       damieng     8: # get dependencies and Daxe latest version from github
                      9: pub get
1.4       damieng    10: pub upgrade daxe
                     11: 
                     12: 
1.5       damieng    13: # compile LON-CAPA Daxe and copy resource files
                     14: pub build
1.2       damieng    15: 
                     16: 
1.5       damieng    17: # extract JSME if necessary
1.7     ! damieng    18: #if [ ! -d build/web/jsme ]; then
        !            19: #  echo "Extracting JSME..."
        !            20: #  unzip -q -d build/web 'JSME_2015-03-03_xsiframe.zip' 'JSME_2015-03-03_xsiframe/jsme/*'
        !            21: #  mv 'build/web/JSME_2015-03-03_xsiframe/jsme' build/web/
        !            22: #  rmdir 'build/web/JSME_2015-03-03_xsiframe'
        !            23: #fi
1.2       damieng    24: 
1.6       damieng    25: # remove JSME (included in LON-CAPA)
                     26: rm -r build/web/jsme
                     27: 
1.7     ! damieng    28: # remove LC_math_editor.min.js (included in LON-CAPA)
        !            29: rm -r build/web/LC_math_editor.min.js
        !            30: 
1.5       damieng    31: # replace web/loncapa_daxe.html by daxe.html (which does not link to a dart file)
                     32: rm build/web/loncapa_daxe.html
                     33: cp daxe.html build/web/
1.2       damieng    34: 
1.3       damieng    35: 
1.5       damieng    36: # rename build/web
                     37: mv build/web build/daxe

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>