File: report-edit

package info (click to toggle)
dialog 1.2-20140911-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,816 kB
  • ctags: 1,664
  • sloc: ansic: 16,924; sh: 6,901; makefile: 413; perl: 354; python: 164
file content (23 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# $Id: report-edit,v 1.4 2012/06/29 09:29:41 tom Exp $
# Report results from editing.
# vile:shmode

case $retval in
  $DIALOG_OK)
    diff -c $input $output
    echo "OK"
    ;;
  $DIALOG_CANCEL)
    echo "Cancel pressed";;
  $DIALOG_HELP)
    echo "Help pressed";;
  $DIALOG_EXTRA)
    echo "Extra pressed";;
  $DIALOG_ITEM_HELP)
    echo "Item-help button pressed.";;
  $DIALOG_ERROR)
    echo "ERROR!";;
  $DIALOG_ESC)
    echo "ESC pressed.";;
esac