#!/bin/sh -e
SCRTCH="/tmp/hoceditor%$$"
hoc fi < "$1" >> "$SCRTCH"
# set modification time for cvs to be able to detect no modification
touch -r "$1" "$SCRTCH"
mv -f "$SCRTCH" "$1"
rm -f "$SCRTCH"
${EDITOR:-vi} "$1"
