]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/dialog/samples/textbox3
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / dialog / samples / textbox3
1 #!/bin/sh
2 # $Id: textbox3,v 1.6 2010/01/13 10:37:01 tom Exp $
3
4 . ./setup-vars
5
6 . ./setup-tempfile
7
8 TEXT=/usr/share/common-licenses/GPL
9 test -f $TEXT || TEXT=../COPYING
10
11 cat textbox.txt | expand > $tempfile
12 cat $TEXT | expand >> $tempfile
13
14 $DIALOG --clear --title "TEXT BOX" \
15         --extra-button "$@" \
16         --textbox "$tempfile" 22 77
17
18 retval=$?
19
20 . ./report-button