-
Notifications
You must be signed in to change notification settings - Fork 38
/
ci_build.sh
executable file
·58 lines (49 loc) · 1.38 KB
/
ci_build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
set -e
if [ ! -z "${TRAVIS_BUILD_DIR}" ] ; then
CI_BUILD_DIR=${TRAVIS_BUILD_DIR}
else
CI_BUILD_DIR=$(pwd)
fi
echo CI_BUILD_DIR is \"${CI_BUILD_DIR}\"
OWTAR=ow-snapshot.tar.xz
# Get Watcom compiler
if [ ! -d _watcom ] ; then
if [ ! -f $OWTAR ] ; then
echo "Downloading OpenWatcom compiler"
wget --no-verbose https://github.com/open-watcom/open-watcom-v2/releases/download/2023-02-01-Build/$OWTAR
fi
echo "Extracting OpenWatcom compiler"
mkdir _watcom
tar -C _watcom -xf $OWTAR
fi
export PATH=$CI_BUILD_DIR/bin:$PATH:$CI_BUILD_DIR/_watcom/binl64
export WATCOM=$CI_BUILD_DIR/_watcom
# Output directory
rm -rf _output
mkdir _output
# Which ones to build
LANGUAGES="english dutch finnish french german italian polish pt pt_br russian serbian slovene spanish swedish turkish ukr yu437"
# GCC
for lng in ${LANGUAGES} ; do
# Do full clean for rebuild of each language
echo "Do full clean"
git clean -x -d -f -e _output -e _watcom -e $OWTAR >/dev/null 2>&1
export LNG=${lng}
./build.sh gcc
TGT="_output/gcc/${LNG}"
mkdir -p ${TGT}
mv -i command.com ${TGT}/.
done
# Watcom
for lng in ${LANGUAGES} ; do
# Do full clean for rebuild of each language
echo "Do full clean"
git clean -x -d -f -e _output -e _watcom -e $OWTAR >/dev/null 2>&1
export LNG=${lng}
./build.sh wc
TGT="_output/wc/${LNG}"
mkdir -p ${TGT}
mv -i command.com ${TGT}/.
done
echo done