summaryrefslogtreecommitdiff
path: root/build_others
blob: fdb5dc0b4a02db7b2c82d4e72bb8e02ed398b3e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash

# Author: Johannes Ranke <jranke@uni-bremen.de>

usage()
{
echo "Usage: ./build_others [options]"
echo "Options:"
echo " -s     Skip apt-get update/upgrade"
}

# Loop over options
skip=false
while test -n "${1}"; do
  case "$1" in
    -s | --skip)
      skip=true
      shift
      ;;
    -*)
      echo "Error: Unknown option: $1" >&2
      usage
      exit 1
      ;;
    *) # No more options
      break
      ;;
  esac
done

# Update apt
if [ "$skip" = false ]
then
  apt-get update
  apt-get upgrade
fi

#for i in  lattice r-cran-mass; do
#for i in  rmatrix nlme; do
#for i in  survival; do
#for i in cluster foreign r-cran-class r-cran-spatial r-cran-nnet kernsmooth mgcv rodbc rpart littler rpy2 rkward; do
for i in lattice rmatrix nlme cluster foreign r-cran-class r-cran-spatial r-cran-nnet r-cran-mass kernsmooth mgcv rpart survival littler rpy2 rkward; do
  ./build -s $i
done

Contact - Imprint