#!/bin/bash

# Script to facilitate building jags binaries for CRAN in a chroot
# Matching CRAN sources must be in /etc/apt/sources.list of the chroot

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

apt-get update
apt-get build-dep jags
apt-get source jags

cd jags-*

dpkg-buildpackage -B

cd ..
