#!/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 apt-get update apt-get build-dep jags apt-get source jags cd jags-* dpkg-buildpackage -B cd ..