]> 4ch.mooo.com Git - 16.git/blob - simulate-sparky4-watcom-env.sh
adapt for Jon's system
[16.git] / simulate-sparky4-watcom-env.sh
1 # Source: http://4ch.mooo.com/4/watcom/wat.sh
2 # with modifications to simulate this environment on Jon's Linux system
3 #
4 # Note that nothing in this project appears to use ROOT or REXX variables
5 # ------BEGIN-------
6 #echo Open Watcom Build Environment
7 ROOT=/home/sparky4/p/osfree
8 watcomver=""
9
10 if [ -d /usr/src/open-watcom-v2/rel ]; then
11     # Jon's Linux system
12     watcom=/usr/src/open-watcom-v2/rel
13     WATCOM=$watcom
14 else
15     # original sparky4 config
16     watcom=/dos/fdos/watcom${watcomver}
17     WATCOM=$watcom
18 fi
19
20 OS=LINUX
21 ENV=LINUX
22 SHELL=Bourne
23 REXX=/usr/bin/rexx
24
25
26 if [ "${watcomver}" == 2 ]; then
27         MACHINE_TYPE=`uname -m`
28         if [ ${MACHINE_TYPE} == 'x86_64' ]; then
29                 PEE="64"
30         else
31                 PEE=""
32         fi
33 else
34         PEE=""
35 fi
36
37 TOOLS=$ROOT/bin/tools
38 INCLUDE=$watcom/h:$watcom/h/dos:$watcom/lh:$watcom/h/os2
39 WIPFC=$watcom/wipfc
40 LIB=$watcom/lib286/dos:$watcom/lib386:$watcom/lib386/dos:$watcom/lib286:$ROOT/lib
41 export OS REXX WATCOM ROOT TOOLS INCLUDE LIB WIPFC
42 . ~/setvars.sh
43 PATH=$watcom/binl${PEE}:$TOOLS:$ROOT:$PATH
44 WD_PATH=$watcom/binl${PEE}
45
46 TERM=xterm-16color
47 export OS ENV REXX WATCOM ROOT TOOLS INCLUDE LIB PATH WD_PATH WIPFC TERM
48
49 alias wcp="wcl -lr -l=dos -0 "
50 if [ ! -d "$watcom" ]; then
51         echo "INSTALL OPEN WATCOM AND EDIT THIS FILE TO THE CORRESPONDING DIRECTORY!!!!"
52 fi
53
54 #if [ ! -d "$watcom/binl64" ]; then
55 #       ln -s $watcom/binl64 $watcom/binl
56 #fi
57
58 #if [  -e "$HOME/setvars.sh" ]; then
59 #       length=$ROOT
60 #       ((length--))
61 #       [ "${filename:$length:1}" == "2" ] && . ./setvars.sh
62 #       else if [ ! -e "setvars.sh" ]; then
63 #       wget http://4ch.mooo.com/4/watcom/setvars.sh
64 #       chmod +x ~/setvars.sh
65 #fi
66 #fi
67 #. ~/aliasyonet.sh