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

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.5     ! damieng    26: # replace web/loncapa_daxe.html by daxe.html (which does not link to a dart file)
        !            27: rm build/web/loncapa_daxe.html
        !            28: cp daxe.html build/web/
1.2       damieng    29: 
1.3       damieng    30: 
1.5     ! damieng    31: # rename build/web
        !            32: mv build/web build/daxe

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