forked from open-watcom/open-watcom-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmnvars.sh
45 lines (36 loc) · 1.19 KB
/
cmnvars.sh
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
#!/bin/sh
# *****************************************************************
# cmnvars.sh - common environment variables
# *****************************************************************
# NOTE: All scripts to set the environment must call this script at
# the end.
# Set the version numbers
export OWBLDVER=20
export OWBLDVERSTR=2.0
# Set up default path information variable
if [ -z "$OWDEFPATH" ]; then
export OWDEFPATH=$PATH:
export OWDEFINCLUDE=$INCLUDE
export OWDEFWATCOM=$WATCOM
fi
# Subdirectory to be used for building OW build tools
export OWOBJDIR=binbuild
# Subdirectory to be used for build binaries
export OWBINDIR=$OWROOT/build/bin
# Subdirectory containing OW sources
export OWSRCDIR=$OWROOT/bld
# Subdirectory containing documentation sources
export OWDOCSDIR=$OWROOT/docs
# Set environment variables
export PATH=$OWBINDIR:$OWROOT/build:$OWDEFPATH
export INCLUDE=$OWDEFINCLUDE
export WATCOM=$OWDEFWATCOM
# Set Watcom tool chain version to WATCOMVER variable
export WATCOMVER=0
if [ "$OWTOOLS" = "WATCOM" ]; then
echo export WATCOMVER=__WATCOMC__>watcom.gc
wcc386 -p watcom.gc >watcom.sh
. ./watcom.sh
rm watcom.*
fi
echo Open Watcom build environment