From 242ec465ba270e83f10653dadd67bfac424d03c4 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 10 Jan 2023 16:07:08 -0300 Subject: [PATCH] Creating win32 ci-build script. --- win/ci-build.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+), 0 deletions(-) create mode 100755 win/ci-build.sh diff --git a/win/ci-build.sh b/win/ci-build.sh new file mode 100755 index 0000000..1953488 --- /dev/null +++ b/win/ci-build.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# +# References: +# +# * https://www.msys2.org/docs/ci/ +# +# +echo "Running ${0}" + +LOGFILE=build.log +rm -f ${LOGFILE} + +die ( ) { + [ -s $LOGFILE ] && tail $LOGFILE + [ "$1" ] && echo "$*" + exit -1 +} + +cd $(dirname $(dirname $(readlink -f ${0}))) + +# +# Build LIB3270 +# +echo "Building lib3270" +rm -fr ./wmi +git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 > $LOGFILE 2>&1 || die "clone lib3270 failure" +pushd lib3270 +./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" +./configure > $LOGFILE 2>&1 || die "Configure failure" +make clean > $LOGFILE 2>&1 || die "Make clean failure" +make all > $LOGFILE 2>&1 || die "Make failure" +popd .. + +export LIB3270_CFLAGS="-I./lib3270/src/include" +export LIB3270_LIBS="-L./lib3270/.bin/Release -l3270.delayed" + +# +# Build LIBV3270 +# + +# +# Build PW3270 +# +#echo "Building VMDETECT" +#./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" +#./configure > $LOGFILE 2>&1 || die "Configure failure" +#make clean > $LOGFILE 2>&1 || die "Make clean failure" +#make all > $LOGFILE 2>&1 || die "Make failure" + +echo "Build complete" + -- libgit2 0.21.2