https://github.com/ctlab/phantasus
Raw File
Tip revision: efcdf0536037bd10a6d61e220a214a5e0d9677fe authored by Nitesh Turaga on 27 October 2020, 15:33:27 UTC
bump x.y.z version to even y prior to creation of RELEASE_3_12 branch
Tip revision: efcdf05
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}';\n" > ../../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