File: setup-dosemu

package info (click to toggle)
dosemu 1.4.0+svn.1999-2
  • links: PTS
  • area: contrib
  • in suites: squeeze
  • size: 15,552 kB
  • ctags: 22,600
  • sloc: ansic: 136,915; asm: 4,107; sh: 1,606; perl: 1,411; makefile: 974; tcl: 599; awk: 404; yacc: 300; lex: 157
file content (93 lines) | stat: -rwxr-xr-x 2,218 bytes parent folder | download | duplicates (7)
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
93
#!/bin/bash
#
# Front end to the runtime & compile time scripts.
#

if false; then #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. 
***       Hence, don't use setup-dosemu at the moment !!
***       We will fix this later though.
***
***       In the meantime just do 'make' to compile DOSEMU and edit
***       the dosemu.conf, ~/.dosemurc and compiletime-settings files
***       manually.
***              --Bart, 20021214 
"
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