1#!/bin/sh 2# $Id: report-edit,v 1.4 2012/06/29 09:29:41 tom Exp $ 3# Report results from editing. 4# vile:shmode 5 6case $retval in 7 $DIALOG_OK) 8 diff -c $input $output 9 echo "OK" 10 ;; 11 $DIALOG_CANCEL) 12 echo "Cancel pressed";; 13 $DIALOG_HELP) 14 echo "Help pressed";; 15 $DIALOG_EXTRA) 16 echo "Extra pressed";; 17 $DIALOG_ITEM_HELP) 18 echo "Item-help button pressed.";; 19 $DIALOG_ERROR) 20 echo "ERROR!";; 21 $DIALOG_ESC) 22 echo "ESC pressed.";; 23esac 24