1#!/bin/bash 2# 3# Decode a distribution from summed RAPPOR reports. 4# 5# This is a tiny shell wrapper around R. 6 7readonly THIS_DIR=$(dirname $0) 8 9# NOTE: A trailing / is *required* on RAPPOR_REPO, because we use string 10# concatenation to form the absolute path. (file.path() in R doesn't do what 11# we want.) 12 13readonly RAPPOR_REPO=$THIS_DIR/../ 14 15# RAPPOR_REPO is used by source() statements to find .R files. 16export RAPPOR_REPO 17 18# Make sure to reuse the same process so it can be killed easily. 19exec $THIS_DIR/decode_dist.R "$@" 20