~ubuntu-branches/ubuntu/trusty/libcdk5/trusty

« back to all changes in this revision

Viewing changes to cli/samples/viewer.sh

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2007-06-06 03:54:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070606035431-ba4gdvw0h6ybffsu
Tags: 5.0.20060507-1
* New upstream release.
* Fixed header patching.  Patch from Robert Schiele.
  Closes: #402978, #416336.
* Update widget count in description.  Closes: #294709.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
# $Id: viewer.sh,v 1.3 2005/12/27 15:53:06 tom Exp $
2
3
 
3
4
#
4
5
# Description:
9
10
#
10
11
# Create some global variables.
11
12
#
12
 
CDK_FSELECT="../cdkfselect"
13
 
CDK_VIEWER="../cdkviewer"
14
 
tmp="/tmp/tmp.$$"
15
 
file="/tmp/fs.$$"
 
13
CDK_FSELECT="${CDK_BINDIR=..}/cdkfselect"
 
14
CDK_VIEWER="${CDK_BINDIR=..}/cdkviewer"
 
15
 
 
16
tmp="${TMPDIR=/tmp}/tmp.$$"
 
17
file="${TMPDIR=/tmp}/fs.$$"
 
18
 
16
19
directory="."
17
20
xpos=CENTER
18
21
ypos=CENTER
47
50
#
48
51
${CDK_FSELECT} -T "<C>Select a file" -d "${directory}" 2> ${file}
49
52
selected=$?
50
 
if [ $selected -lt 0 ]; then
51
 
   exit;
52
 
fi
 
53
test $selected = 255 && exit 1
 
54
 
53
55
answer=`cat ${file}`
54
56
 
55
57
#