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

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
                     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: 
                     25: 
1.6     ! damieng    26: # remove JSME (included in LON-CAPA)
        !            27: rm -r build/web/jsme
        !            28: 
1.5       damieng    29: # replace web/loncapa_daxe.html by daxe.html (which does not link to a dart file)
                     30: rm build/web/loncapa_daxe.html
                     31: cp daxe.html build/web/
1.2       damieng    32: 
1.3       damieng    33: 
1.5       damieng    34: # rename build/web
                     35: mv build/web build/daxe

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