Revision 6298a5601cc5b84f812a66d95dd5361bb5d8b4f9 authored by Vladislav Kamenev on 13 August 2018, 14:20:47 UTC, committed by Vladislav Kamenev on 13 August 2018, 14:20:47 UTC
1 parent 94ca5d1
Raw File
update_static.sh
#!/bin/bash
PHANTASUS_VERSION=$(grep -r 'Version:' ./DESCRIPTION | awk {'print $2'})
PHANTASUS_BUILD=$(git rev-parse HEAD)

R -e "rmarkdown::render('./vignettes/phantasus-tutorial.Rmd')"
cp ./vignettes/phantasus-tutorial.html inst/www/phantasus.js/

cd inst-raw/phantasus.js
grunt dist

git log -1 > ../../inst/www/phantasus.js/commit
printf "window.PHANTASUS_VERSION=$PHANTASUS_VERSION\nwindow.PHANTASUS_BUILD='none-${PHANTASUS_BUILD::10}'" > ../../inst/www/phantasus.js/RELEASE.js

cp ./index.html ../../inst/www/phantasus.js/
cp ./js/phantasus.js ../../inst/www/phantasus.js/js/
cp ./js/phantasus-external-*.min.js ../../inst/www/phantasus.js/js/
cp -r ./jasmine ../../inst/www/phantasus.js/
cp ./my.conf.js ./package.json ../../inst/www/phantasus.js/
cp -r ./css/images ../../inst/www/phantasus.js/css/
cp -r ./css/phantasus-latest.min.css ../../inst/www/phantasus.js/css/
back to top