#!/bin/sh # Gently borrowed code from x11/XFree86-4 yesno () { answ=X while [ $answ = X ]; do echo -n "$2 [$1] " read answ if [ X$answ = X ]; then answ=$1; fi case $answ in y|yes|Y|YES) answ=YES;; n|no|N|NO) answ=NO;; *) echo invalid answer answ=X ;; esac done } question() { echo -n "$2 [$1] " read answ if [ X$answ = X ]; then answ=$1; fi } F=$WRKDIR/.config rm -f $F cat <> $F echo "Do you want to install the Basis game packet?" yesno YES "Without this you can't play without CD. (112 MB) " echo BASIC=$answ >> $F echo "Do you want to install the Graphic packet?" yesno YES "Without this you can't play without CD. (14 MB) " echo GRAPHIC=$answ >> $F yesno YES "Do you want to install the Scenarios (1 MB) " echo SCENARIO=$answ >> $F yesno NO "Do you want to install Music (64 MB) " echo MUSIC=$answ >> $F yesno NO "Do you want to install Videos (137 MB) " echo VIDEOS=$answ >> $F exit 0