File: build

package info (click to toggle)
r-cran-rpf 1.0.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,472 kB
  • sloc: cpp: 5,370; sh: 114; ansic: 41; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 322 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -o errexit
set -o nounset
set -o noclobber

if [ ! -e ./tools/build ]; then
  echo "$0 must be run from the top of the project tree"
  exit
fi

git log --oneline -1
[ -d staging ] && rm -r ./staging
mkdir staging
git archive --format=tar HEAD | (cd staging; tar -xf -)
cd staging

./tools/rox
R CMD build .