#!/bin/bash
# Script to facilitate building r-base binaries for CRAN in a chroot
# Matching CRAN sources must be in /etc/apt/sources.list of the chroot
apt-get update
apt-get upgrade
apt-get build-dep r-base
apt-get source r-base
cd r-base-*
dpkg-buildpackage -B
cd ..