Support building R-devel
Martin Maechler, a member of R core provides a daily tarball of R-devel sources at https://stat.ethz.ch/R/daily. This provides support for building based on this source if R_VERSION is set to 'devel'
This commit is contained in:
parent
55814eebc7
commit
2494b8eb98
1 changed files with 6 additions and 1 deletions
|
|
@ -40,7 +40,12 @@ archive_r() {
|
|||
|
||||
fetch_r_source() {
|
||||
echo "Downloading R-${1}"
|
||||
wget -q "${CRAN}/src/base/R-`echo ${1}| awk 'BEGIN {FS="."} {print $1}'`/R-${1}.tar.gz" -O /tmp/R-${1}.tar.gz
|
||||
if [ "${1}" = devel ]; then
|
||||
# Download the daily tarball of R devel
|
||||
wget -q https://stat.ethz.ch/R/daily/R-devel.tar.gz -O /tmp/R-devel.tar.gz
|
||||
else
|
||||
wget -q "${CRAN}/src/base/R-`echo ${1}| awk 'BEGIN {FS="."} {print $1}'`/R-${1}.tar.gz" -O /tmp/R-${1}.tar.gz
|
||||
fi
|
||||
echo "Extracting R-${1}"
|
||||
tar xf /tmp/R-${1}.tar.gz -C /tmp
|
||||
rm /tmp/R-${1}.tar.gz
|
||||
|
|
|
|||
Loading…
Reference in a new issue