Skip to content

Commit

Permalink
Added packaging script.
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor2 committed Feb 20, 2017
1 parent b0ab517 commit 0e9a503
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions build/package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash

tmpdir="tmp"
mkdir -p $tmpdir

cd binaries
/bin/find * | {
while read line; do
if [ -d $line ]; then
mkdir ../$tmpdir/$line
else
ext=${line#*.}
if [ "$ext" != "exp" ]; then
cp $line ../$tmpdir/$line
fi
fi
done
}

cd ..

cat > $tmpdir/readme.txt <<EOF
This archive contains prebuilt zlib library of version 1.2.11 compiled with optimized version of deflate.
For more details please visit https://github.com/gildor2/fast_zlib
Directory names combined from <platform>-<calling convention>. Platform is either win32 or win64, calling
convention is cdecl or winapi.
Each directory contains a static library and DLL. Static library file always has name "zlibstat.lib".
For "cdecl", DLL name is zlib1.dll, and it is built with standard C calling convention. This is matches
standard build of zlib for Windows platform.
For "winapi", calling conventions is stdcall, and DLL name is "zlibwapi.dll". This matches behavior from
zlib/contrib/vstudio (by Gilles Vollant). These versions of library, in addition to "cdecl" version,
contains minizip library. To use winapi DLL you should add define ZLIB_WINAPI before including zlib.h.
Konstantin Nosov
https://github.com/gildor2/fast_zlib
http://www.gildor.org
EOF

0 comments on commit 0e9a503

Please sign in to comment.