FreeDOS/ci_build.sh

39 lines
925 B
Bash
Raw Normal View History

#!/bin/sh
set -e
if [ -z "${BUILD_DIR}" ] ; then
BUILD_DIR=$(pwd)
fi
echo BUILD_DIR is \"${BUILD_DIR}\"
# Output directory
rm -rf _output
mkdir _output
# GCC
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
make all COMPILER=gcc
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
# 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
mkdir _watcom
(cd _watcom && tar -xf ../ow-snapshot.tar.gz)
fi
export PATH=$BUILD_DIR/bin:$PATH:$BUILD_DIR/_watcom/binl64
export WATCOM=$BUILD_DIR/_watcom
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
make all COMPILER=owlinux
mv -n bin/KWC*.map bin/KWC*.sys _output/.
2021-01-09 01:00:25 +01:00
echo done