Commit | Line | Data |
---|---|---|
cbd88fe5 BA |
1 | #!/bin/bash |
2 | ||
3 | # Synchronize package folder | |
4 | rsync -a --delete pkg/ pkg-cran/ | |
5 | cd pkg-cran | |
6 | ||
7 | # Replace all used greek letters by beta, mu, ...etc | |
8 | for file in `find -name *.R`; do | |
9 | if [ -f $file ]; then | |
10 | sed -i 's/μ/mu/g' $file | |
11 | sed -i 's/β/beta/g' $file | |
cf673dee | 12 | sed -i 's/ρ/rho/g' $file |
cbd88fe5 BA |
13 | sed -i 's/λ/lambda/g' $file |
14 | sed -i 's/Σ/Sigma/g' $file | |
15 | fi | |
16 | done | |
17 | ||
18 | if [ "$1" == "i" ]; then | |
19 | # Install package | |
20 | echo "rp()" | R --slave | |
21 | fi | |
22 | ||
23 | cd .. |