Skip to content

Commit 58195ed

Browse files
committed
Updated build and packaging scripts
- build.sh will use latest available Visual Studio compiler - package.sh does some sanity checks
1 parent 4ba0ec7 commit 58195ed

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ -z "$PLATFORM" ]; then
99
[ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == "linux" ] && PLATFORM="linux"
1010
fi
1111

12-
export vc_ver=10
12+
export vc_ver=latest
1313

1414
# Build <platform> <type>
1515
function Build()

build/package.sh

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
if [ ! -d "binaries" ]; then
4+
echo "Please start \"buildall.sh\" before packaging."
5+
exit 1
6+
fi
7+
38
# Extract version from zlib.h using grep and bash regexp
49
ver=`grep ../zlib/zlib.h -e "#define ZLIB_VERSION"`
510
[[ "$ver" =~ "\"(.*)\"" ]] && version=${BASH_REMATCH[1]}
@@ -43,3 +48,5 @@ Konstantin Nosov
4348
https://github.com/gildor2/fast_zlib
4449
http://www.gildor.org
4550
EOF
51+
52+
echo "Now \"tmp\" directory contains data for zipping."

0 commit comments

Comments
 (0)