summaryrefslogblamecommitdiff
path: root/build_others
blob: 7865382e2f9864677df71e297af09eec15bcb317 (plain) (tree)
1
2
3
4

           

                                               































                                          
 


                                                                           
                       

                                           
                                                                                                                                                                          
               
    
#!/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

# When doing a new repository, lattice, r-cran-mass and survival have to be
# built first, then nlme and rmatrix, then the rest

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

Contact - Imprint