viewlicense.sh

sunder2.1a/bin/viewlicense.sh · 625 B

From the archive sundermud-2.1-a.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh
DIALOG=${DIALOG=dialog}
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
trap "rm -f $tempfile" 0 1 2 5 15

cat << EOF > $tempfile
Welcome to SunderMud ][. You must view and agree to the applicable
license information before you may use this software. After reading
the license fully. If you do not agree to this license, you should
not compile or use this software in any way.


EOF

TEXT=../doc/LICENSE

cat $TEXT | expand >> $tempfile

$DIALOG --clear --no-shadow --title "License Information" --textbox "$tempfile" 0 0

case $? in
  0)
    echo "Ok";;
  255)
    exit 1;;
esac
 
 
 
 
 
 
 
 
 
 
 
 
 

Site Stats

Snippets: 1791
Codebases: 571