File: install

package info (click to toggle)
r-cran-rpf 1.0.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,484 kB
  • sloc: cpp: 5,364; sh: 114; ansic: 41; makefile: 2
file content (19 lines) | stat: -rwxr-xr-x 297 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/install ]; then
  echo "$0 must be run from the top of the project tree"
  exit
fi

pkg=rpf

CPUS=1
if [ -f /proc/cpuinfo ]; then
  CPUS=$(grep ^processor /proc/cpuinfo  | wc -l)
fi

MAKEFLAGS="-j $CPUS" R CMD INSTALL .