Skip to content
Snippets Groups Projects
Commit 2fc0170e authored by brad kittenbrink's avatar brad kittenbrink
Browse files

Fix for making linux build of zlib 32 bits, and minor cleanups.

parent 7e3af9b0
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,16 @@ cd "$ZLIB_SOURCE_DIR"
mkdir -p "stage/include/zlib"
cp {zlib.h,zconf.h} "stage/include/zlib"
;;
*)
"darwin")
./configure --prefix="$(pwd)/stage"
make
make install
;;
"linux")
./configure --prefix="$(pwd)/stage" CFLAGS="-m32" CXXFLAGS="-m32"
make
make install
;;
esac
mkdir -p stage/LICENSES
tail -n 31 README > stage/LICENSES/zlib.txt
......
......@@ -46,21 +46,19 @@ if [ "$OSTYPE" == 'cygwin' ] ; then
fi
# load autbuild provided shell functions and variables
set +x
eval "$("$AUTOBUILD" source_environment)"
set -x
"$AUTOBUILD" build
"$AUTOBUILD" package
ZLIB_INSTALLABLE_PACKAGE_FILENAME="$(ls -1 zlib-$ZLIB_VERSION-$AUTOBUILD_PLATFORM-$(date +%Y%m%d)*.tar.bz2)"
upload_item installer "$ZLIB_INSTALLABLE_PACKAGE_FILENAME" application/octet-stream
"$AUTOBUILD" upload "$ZLIB_INSTALLABLE_PACKAGE_FILENAME"
ZLIB_INSTALLABLE_PACKAGE_MD5="$(calc_md5 "$ZLIB_INSTALLABLE_PACKAGE_FILENAME")"
echo "{'md5':'$ZLIB_INSTALLABLE_PACKAGE_MD5', 'url':'http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/$ZLIB_INSTALLABLE_PACKAGE_FILENAME'}" > "output.json"
echo "{'md5':'$ZLIB_INSTALLABLE_PACKAGE_MD5', 'url':'http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/$ZLIB_INSTALLABLE_PACKAGE_FILENAME'}" > "output.js"
upload_item docs "output.json" text/plain
upload_item installer "output.js" text/plain
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment