#!/bin/sh

FILE=meteorites_formation_ages

awk '!/^#/ && (NF>0)' < $FILE.dat > $FILE.tmp
echo -e "10\n4.3 4.7\n$FILE.tmp" > hist.in
hist4 < hist.in > $FILE"2.dat_h"

./$FILE"2.plt"
patch $FILE"2.eps" $FILE"2.eps.diff"

epstopdf_embed $FILE"2.eps"
eps2png_crop $FILE"2.eps"

