]> 4ch.mooo.com Git - 16.git/blob - simulate-sparky4-watcom-env.sh
okay sparky let's get down to what's making your build environment screw
[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 watcom=/dos/fdos/watcom${watcomver}
10 WATCOM=$watcom
11 OS=LINUX
12 ENV=LINUX
13 SHELL=Bourne
14 REXX=/usr/bin/rexx
15
16
17 if [ "${watcomver}" == 2 ]; then
18         MACHINE_TYPE=`uname -m`
19         if [ ${MACHINE_TYPE} == 'x86_64' ]; then
20                 PEE="64"
21         else
22                 PEE=""
23         fi
24 else
25         PEE=""
26 fi
27
28 TOOLS=$ROOT/bin/tools
29 INCLUDE=$watcom/h:$watcom/h/dos:$watcom/lh:$watcom/h/os2
30 WIPFC=$watcom/wipfc
31 LIB=$watcom/lib286/dos:$watcom/lib386:$watcom/lib386/dos:$watcom/lib286:$ROOT/lib
32 export OS REXX WATCOM ROOT TOOLS INCLUDE LIB WIPFC
33 . ~/setvars.sh
34 PATH=$watcom/binl${PEE}:$TOOLS:$ROOT:$PATH
35 WD_PATH=$watcom/binl${PEE}
36
37 TERM=xterm-16color
38 export OS ENV REXX WATCOM ROOT TOOLS INCLUDE LIB PATH WD_PATH WIPFC TERM
39
40 alias wcp="wcl -lr -l=dos -0 "
41 if [ ! -d "$watcom" ]; then
42         echo "INSTALL OPEN WATCOM AND EDIT THIS FILE TO THE CORRESPONDING DIRECTORY!!!!"
43 fi
44
45 #if [ ! -d "$watcom/binl64" ]; then
46 #       ln -s $watcom/binl64 $watcom/binl
47 #fi
48
49 #if [  -e "$HOME/setvars.sh" ]; then
50 #       length=$ROOT
51 #       ((length--))
52 #       [ "${filename:$length:1}" == "2" ] && . ./setvars.sh
53 #       else if [ ! -e "setvars.sh" ]; then
54 #       wget http://4ch.mooo.com/4/watcom/setvars.sh
55 #       chmod +x ~/setvars.sh
56 #fi
57 #fi
58 #. ~/aliasyonet.sh