[R-package] add 'cleanup' script to handle left-behind Makevars (#3434)

* [R-package] add 'cleanup' script to handle left-behind Makevars

* always install library for checkbashisms
This commit is contained in:
James Lamb 2020-10-04 16:30:54 +01:00 коммит произвёл GitHub
Родитель 0fc4c5c490
Коммит 2903ca0c9f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -29,6 +29,8 @@ fi
# installing precompiled R for Ubuntu
# https://cran.r-project.org/bin/linux/ubuntu/#installation
# adding steps from https://stackoverflow.com/a/56378217/3986677 to get latest version
#
# `devscripts` is required for 'checkbashisms' (https://github.com/r-lib/actions/issues/111)
if [[ $OS_NAME == "linux" ]]; then
sudo apt-key adv \
--keyserver keyserver.ubuntu.com \
@ -39,6 +41,7 @@ if [[ $OS_NAME == "linux" ]]; then
sudo apt-get install \
--no-install-recommends \
-y --allow-downgrades \
devscripts \
r-base-dev=${R_LINUX_VERSION} \
texinfo \
texlive-latex-recommended \
@ -47,13 +50,12 @@ if [[ $OS_NAME == "linux" ]]; then
qpdf \
|| exit -1
# https://github.com/r-lib/actions/issues/111
if [[ $R_BUILD_TYPE == "cran" ]]; then
sudo apt-get install \
--no-install-recommends \
-y \
autoconf=$(cat R-package/AUTOCONF_UBUNTU_VERSION) \
devscripts \
|| exit -1
fi
fi
@ -61,11 +63,11 @@ fi
# Installing R precompiled for Mac OS 10.11 or higher
if [[ $OS_NAME == "macos" ]]; then
if [[ $R_BUILD_TYPE == "cran" ]]; then
brew install \
automake \
checkbashisms
brew install automake
fi
brew install qpdf
brew install \
checkbashisms \
qpdf
brew cask install basictex
export PATH="/Library/TeX/texbin:$PATH"
sudo tlmgr --verify-repo=none update --self

2
R-package/cleanup Normal file
Просмотреть файл

@ -0,0 +1,2 @@
#!/bin/sh
rm -f src/Makevars