diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-19 13:59:30 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-19 13:59:30 +0000 |
commit | 0b7b2c69ec83497d9accab064da0f4ad07662d42 (patch) | |
tree | e8f22a2acecbf3035850f56beb1c8161c53cdf2d /Build/source/utils/dialog/dialog-1.1-20080819/samples/dselect | |
parent | ee507bbd1fc483c58acb33cca25509a4dd81df9b (diff) |
prepare for new build system
git-svn-id: svn://tug.org/texlive/trunk@12429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/dselect')
-rwxr-xr-x | Build/source/utils/dialog/dialog-1.1-20080819/samples/dselect | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/dselect b/Build/source/utils/dialog/dialog-1.1-20080819/samples/dselect new file mode 100755 index 00000000000..e85dbf8298e --- /dev/null +++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/dselect @@ -0,0 +1,21 @@ +#!/bin/sh +# $Id: dselect,v 1.1 2006/12/27 01:11:08 tom Exp $ +: ${DIALOG=dialog} + +exec 3>&1 +FILE=`$DIALOG --title "Please choose a directory" --dselect $HOME/ 14 48 2>&1 1>&3` +code=$? +exec 3>&- + +case $code in + 0) + echo "\"$FILE\" chosen";; + 1) + echo "Button 1 (Cancel) pressed";; + 2) + echo "Button 2 (Help) pressed";; + 3) + echo "Button 3 (Extra) pressed";; + 255) + echo "Box closed.";; +esac |