Adiciona build.sh.

parent b3191c18
Estatística Computacional II
============================
Visite <http://leg.ufpr.br/~walmes/ensino/EC2/> para ver o conteúdo.
# Removes the _site/.
rm -r _site/
# Rscript -e "library(rmarkdown); clean_site()"
# The root file.
echo $PWD
THEROOT=$PWD
cd $THEROOT
# List of Rmd files.
RMDFILES=$(find . -name \*.Rmd -print)
echo $RMDFILES
# Runs rmarkdown::render() in each Rmd file down in the tree.
for RMD in $RMDFILES; do
DIRNAME=`dirname "$RMD"`
RMDNAME=`basename "$RMD"`
cd $DIRNAME
Rscript -e "library(rmarkdown); render(\"$RMDNAME\")"
cd $THEROOT
done
# Renders the site.
Rscript -e "library(rmarkdown); render_site()"
# Upload.
rsync -avzp \
./_site/ \
--progress \
--rsh="ssh -p$PATAXOP" "$PATAXO:~/public_html/ensino/EC2/"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment