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

« back to all changes in this revision

Viewing changes to cli/samples/scroll.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: scroll.sh,v 1.3 2005/12/27 15:53:06 tom Exp $
2
3
 
3
4
#
4
5
# Description:
68
69
#
69
70
# Create some global variables.
70
71
#
71
 
CDK_SCROLL="../cdkscroll"
72
 
CDK_LABEL="../cdklabel"
73
 
tmpPass="/tmp/sl.$$"
74
 
output="/tmp/output.$$"
75
 
userAccounts="/tmp/ua.$$"
 
72
CDK_SCROLL="${CDK_BINDIR=..}/cdkscroll"
 
73
CDK_LABEL="${CDK_BINDIR=..}/cdklabel"
 
74
 
 
75
tmpPass="${TMPDIR=/tmp}/sl.$$"
 
76
output="${TMPDIR=/tmp}/output.$$"
 
77
userAccounts="${TMPDIR=/tmp}/ua.$$"
 
78
 
76
79
TYPE="Other"
77
80
 
78
81
#
117
120
# Create the scrolling list.
118
121
#
119
122
${CDK_SCROLL} -T "${title}" -f ${userAccounts} -n -B "${buttons}" 2> ${output}
120
 
if [ $? -lt 0 ]; then
121
 
   exit;
122
 
fi
 
123
selected=$?
 
124
test $selected = 255 && exit 1
 
125
 
123
126
answer=`cat ${output}`
124
127
 
125
128
#