2019-11-12 11:19:30 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-10-14 13:12:32 +02:00
|
|
|
set -e
|
|
|
|
|
2020-02-23 12:38:00 +01:00
|
|
|
if [ -z "${TRAVIS_BUILD_DIR}" ] ; then
|
|
|
|
TRAVIS_BUILD_DIR=$(pwd)
|
|
|
|
fi
|
|
|
|
echo TRAVIS_BUILD_DIR is \"${TRAVIS_BUILD_DIR}\"
|
|
|
|
|
|
|
|
# Output directory
|
|
|
|
rm -rf _output
|
|
|
|
mkdir _output
|
|
|
|
|
|
|
|
# GCC
|
|
|
|
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
|
2019-11-12 11:19:30 +01:00
|
|
|
make all COMPILER=gcc
|
2021-09-24 11:47:48 +02:00
|
|
|
mv -n bin/KGC*.map bin/KGC*.sys _output/.
|
|
|
|
# GCC share
|
|
|
|
(cd share && make clobber && env COMPILER=gcc ./build.sh)
|
|
|
|
mv -n share/share.com _output/gshare.com
|
|
|
|
mv -n share/share.map _output/gshare.map
|
2020-02-23 12:38:00 +01:00
|
|
|
|
|
|
|
# Watcom
|
|
|
|
if [ ! -d _watcom ] ; then
|
2021-01-09 01:00:25 +01:00
|
|
|
[ -f ow-snapshot.tar.gz ] || wget --quiet https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/ow-snapshot.tar.gz
|
2020-02-23 12:38:00 +01:00
|
|
|
|
|
|
|
mkdir _watcom
|
|
|
|
(cd _watcom && tar -xf ../ow-snapshot.tar.gz)
|
|
|
|
fi
|
|
|
|
|
|
|
|
export PATH=$TRAVIS_BUILD_DIR/bin:$PATH:$TRAVIS_BUILD_DIR/_watcom/binl64
|
|
|
|
export WATCOM=$TRAVIS_BUILD_DIR/_watcom
|
2019-11-12 11:19:30 +01:00
|
|
|
|
2020-02-23 12:38:00 +01:00
|
|
|
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
|
|
|
|
make all COMPILER=owlinux
|
2021-09-24 11:47:48 +02:00
|
|
|
mv -n bin/KWC*.map bin/KWC*.sys _output/.
|
2021-01-09 01:00:25 +01:00
|
|
|
|
|
|
|
echo done
|