#!/bin/bash

#
# Wrapper for Prescribble that uses gzip to compress
# the data.
#
# WARNING: intermediate saves may be lost
#
cp ~/prescribble.dat.gz /tmp/prescribble/prescribble.dat.gz
gunzip /tmp/prescribble/prescribble.dat.gz
prescribble -f /tmp/prescribble/prescribble.dat -auto
gzip /tmp/prescribble/prescribble.dat
cp /tmp/prescribble/prescribble.dat.gz ~/prescribble.dat.gz 
rm /tmp/prescribble/prescribble.dat.gz