-
Notifications
You must be signed in to change notification settings - Fork 42
/
ghp-2.sh
executable file
·38 lines (23 loc) · 899 Bytes
/
ghp-2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
## Create html and pdf vignettes and place in github pages directory.
## launch in parallel and from the directory once entered in it. Simpler for manual runs
## cd ./OncoSimulR/vignettes
## Rscript -e 'library(rmarkdown); library(BiocStyle); render("OncoSimulR.Rmd")'
cd ./OncoSimulR/vignettes
../../html-vignette-here.sh &
../../pdf-vignette-here.sh
mv OncoSimulR.html ../../../oncosimul-gh-pages/.
mv OncoSimulR.pdf ../../../oncosimul-gh-pages/pdfs/.
rm -r -f OncoSimulR_files
rm -r -f OncoSimulR-tex_files
rm OncoSimulR.tex
rm OncoSimulR.synctex.gz
rm OncoSimulR-tex.tex
rm OncoSimulR-tex.Rmd
rm OncoSimulR-tex.pdf
rm OncoSimulR-tex.synctex.gz
rm rl1.txt
gv0=$(git rev-parse --short HEAD)
cd ../../../oncosimul-gh-pages
gv=$(git rev-parse --short HEAD)
echo " **** Now, Commit and push, if appropriate, including gh-pages. We are at " $gv " at " $gv0 " original"