File: setup-dosemu

package info (click to toggle)
dosemu 1.0.2.1-7
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 7,512 kB
  • ctags: 12,359
  • sloc: ansic: 86,629; asm: 3,755; sh: 3,711; yacc: 3,039; lex: 1,347; perl: 1,337; makefile: 838; tcl: 602; awk: 410
file content (92 lines) | stat: -rwxr-xr-x 2,286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
#
# Front end to the runtime & compile time scripts.
#

if hash wish >/dev/null 2>&1; then
  if [ "$DISPLAY" != "" ]; then
    echo "
*** NOTE: setup-dosemu currently is only able to handle setup
***       via TclTk. Fortunately you have that installed ;-)
"
    mkdir -p ~/.dosemu/tmp
    cd setup
    exec ./setup.tk
  fi
fi

echo "
*** NOTE: setup-dosemu isn't correctly updated to the recent changes
***       in the configuration stuff. Though it can handle the runtime setup
***       via TclTk, you either don't have that installed or are not running X.
***       Hence, don't use setup-dosemu at the moment !!
***       We will fix this in the near future though.
***
***       In the meantime just do 'make' to compile DOSEMU and edit
***       the /etc/dosemu/dosemu.conf manually.       --Hans, 980531
"
exit 1


TOPDIR=`pwd -P`
export TOPDIR
mkdir -p ~/.dosemu/tmp
TEMP=~/.dosemu/tmp/$0.$$

AWK=gawk
export AWK

. setup/select-dialog

FINISHED=0
if [ "@$DIALOG_SUPPORTS_CURRENT" = "@true" ];
then
  CURRENT=1
fi

while [ $FINISHED -ne 1 ]
do
  $DIALOG --backtitle "DOSEmu Configuration" \
    --title "Select Configuration to perform" \
    --menu "Choose the Configuration to perform:" 10 60 3 $CURRENT \
      1 "Compile time (runs ./configure)" \
      2 "Runtime (both System Wide, and personal)" \
      3 "Exit" 2> $TEMP
  
  RETVAL=$?
  if [ $RETVAL -eq 0 ]
  then
    RESULT=`cat $TEMP`

    if [ "@$DIALOG_SUPPORTS_CURRENT" = "@true" ];
    then
      CURRENT=$RESULT
    fi
    
    case $RESULT in 
      1)
        (cd setup; ./compiletime_setup.sh)
	;;
      2)
# we changed /etc/dosemu.conf
# as long as those changes aren't reflected, we disable it
# -- Hans 970115
echo "Sorry, this one is currently not working"
FINISHED=1
rm $TEMP
exit 1
        (cd setup; ./runtime_setup.sh)
        ;;
      3)
        FINISHED=1
        ;;
    esac
  elif [ $RETVAL -eq 2 ]
  then
    $DIALOG --backtitle 'DOSEmu configuration' --title 'Help' --msgbox 'Select "Compile time" to configure the DOSEmu compilation process and select which optional features are included. Select "Runtime" to configure the variables DOSEmu uses when it runs, such as the amount and type of memory to provide to applications.' 10 65
  else
    FINISHED=1
  fi
done

rm $TEMP