#!/bin/sh

# I somehow botched something, and I want to recover my edits and 
# logfile from the last checkpoint.  Assumed that there's a gct-map,
# etc. in the current directory.

# Exit on error.
set -e

cp save/gct-map gct-map.upd
cat gct-map >> gct-map.upd
gct-remap -test-map gct-map.upd -update-copy
mv gct-map.upd gct-map

# Get an up-to-date logfile too.
update

exit
