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

« back to all changes in this revision

Viewing changes to cli/samples/calendar.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: calendar.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_CALENDAR="../cdkcalendar"
13
 
CDK_LABEL="../cdklabel"
14
 
date="/tmp/cal.$$"
15
 
tmp="/tmp/tmp.$$"
 
13
CDK_CALENDAR="${CDK_BINDIR=..}/cdkcalendar"
 
14
CDK_LABEL="${CDK_BINDIR=..}/cdklabel"
 
15
 
 
16
date="${TMPDIR=/tmp}/cal.$$"
 
17
tmp="${TMPDIR=/tmp}/tmp.$$"
 
18
 
16
19
xpos=CENTER
17
20
ypos=CENTER
18
21
 
58
61
#
59
62
${CDK_CALENDAR} -B "${buttons}" -d ${day} -m ${month} -y ${year} -T "${title}" -X ${xpos} -Y ${ypos} -O ${date} -S
60
63
selected=$?
61
 
if [ $selected -lt 0 ]; then
62
 
   exit;
63
 
fi
 
64
test $selected = 255 && exit 1
 
65
 
64
66
answer=`cat ${date}`
65
67
 
66
68
#