Skip to content

Instantly share code, notes, and snippets.

@jcheng5
Created April 1, 2017 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jcheng5/ae75eba802499550c3e9c2d892e62315 to your computer and use it in GitHub Desktop.
Save jcheng5/ae75eba802499550c3e9c2d892e62315 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
cd "$(dirname $0)"
cd r-source
make distclean
tools/rsync-recommended
./configure
(cd doc/manual && make front-matter html-non-svn)
echo -n 'Revision: ' > SVN-REVISION
git log --format=%B -n 1 \
| grep "^git-svn-id" \
| sed -E 's/^git-svn-id: https:\/\/svn.r-project.org\/R\/[^@]*@([0-9]+).*$/\1/' \
>> SVN-REVISION
echo -n 'Last Changed Date: ' >> SVN-REVISION
git log -1 --pretty=format:"%ad" --date=iso | cut -d' ' -f1 >> SVN-REVISION
make -j4
#!/bin/bash
set -e
cd $(dirname $0)
./build-r-source.sh || exit 125 # git bisect skip if can't build R
cd r-source
bin/R CMD check /pool_0.1.0.tar.gz --no-manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment