Commit 242ec465ba270e83f10653dadd67bfac424d03c4
1 parent
5efbc8cb
Exists in
master
and in
1 other branch
Creating win32 ci-build script.
Showing
1 changed file
with
51 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,51 @@ | @@ -0,0 +1,51 @@ | ||
1 | +#!/bin/bash | ||
2 | +# | ||
3 | +# References: | ||
4 | +# | ||
5 | +# * https://www.msys2.org/docs/ci/ | ||
6 | +# | ||
7 | +# | ||
8 | +echo "Running ${0}" | ||
9 | + | ||
10 | +LOGFILE=build.log | ||
11 | +rm -f ${LOGFILE} | ||
12 | + | ||
13 | +die ( ) { | ||
14 | + [ -s $LOGFILE ] && tail $LOGFILE | ||
15 | + [ "$1" ] && echo "$*" | ||
16 | + exit -1 | ||
17 | +} | ||
18 | + | ||
19 | +cd $(dirname $(dirname $(readlink -f ${0}))) | ||
20 | + | ||
21 | +# | ||
22 | +# Build LIB3270 | ||
23 | +# | ||
24 | +echo "Building lib3270" | ||
25 | +rm -fr ./wmi | ||
26 | +git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 > $LOGFILE 2>&1 || die "clone lib3270 failure" | ||
27 | +pushd lib3270 | ||
28 | +./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" | ||
29 | +./configure > $LOGFILE 2>&1 || die "Configure failure" | ||
30 | +make clean > $LOGFILE 2>&1 || die "Make clean failure" | ||
31 | +make all > $LOGFILE 2>&1 || die "Make failure" | ||
32 | +popd .. | ||
33 | + | ||
34 | +export LIB3270_CFLAGS="-I./lib3270/src/include" | ||
35 | +export LIB3270_LIBS="-L./lib3270/.bin/Release -l3270.delayed" | ||
36 | + | ||
37 | +# | ||
38 | +# Build LIBV3270 | ||
39 | +# | ||
40 | + | ||
41 | +# | ||
42 | +# Build PW3270 | ||
43 | +# | ||
44 | +#echo "Building VMDETECT" | ||
45 | +#./autogen.sh > $LOGFILE 2>&1 || die "Autogen failure" | ||
46 | +#./configure > $LOGFILE 2>&1 || die "Configure failure" | ||
47 | +#make clean > $LOGFILE 2>&1 || die "Make clean failure" | ||
48 | +#make all > $LOGFILE 2>&1 || die "Make failure" | ||
49 | + | ||
50 | +echo "Build complete" | ||
51 | + |