Commit 9ada015e authored by Kenton Varda's avatar Kenton Varda

Automatically convert sources to DOS line endings in Windows release zip.

Fixes #174
parent cfd813e4
...@@ -61,22 +61,30 @@ build_packages() { ...@@ -61,22 +61,30 @@ build_packages() {
echo "=========================================================================" echo "========================================================================="
echo "Building C++ package..." echo "Building C++ package..."
echo "=========================================================================" echo "========================================================================="
# make dist tarball and move into ..
cd c++ cd c++
doit autoreconf -i doit autoreconf -i
doit ./configure doit ./configure
doit make -j6 distcheck doit make -j6 distcheck
doit make dist-zip
doit mv capnproto-c++-$VERSION.tar.gz .. doit mv capnproto-c++-$VERSION.tar.gz ..
doit mv capnproto-c++-$VERSION.zip ../capnproto-c++-win32-$VERSION.zip
doit make distclean doit make distclean
# build windows executables
doit ./configure --host=i686-w64-mingw32 --with-external-capnp \ doit ./configure --host=i686-w64-mingw32 --with-external-capnp \
--disable-shared CXXFLAGS='-static-libgcc -static-libstdc++' --disable-shared CXXFLAGS='-static-libgcc -static-libstdc++'
doit make -j6 capnp.exe capnpc-c++.exe capnpc-capnp.exe doit make -j6 capnp.exe capnpc-c++.exe capnpc-capnp.exe
doit i686-w64-mingw32-strip capnp.exe capnpc-c++.exe capnpc-capnp.exe doit i686-w64-mingw32-strip capnp.exe capnpc-c++.exe capnpc-capnp.exe
doit mkdir capnproto-tools-win32-$VERSION doit mkdir capnproto-tools-win32-$VERSION
doit mv capnp.exe capnpc-c++.exe capnpc-capnp.exe capnproto-tools-win32-$VERSION doit mv capnp.exe capnpc-c++.exe capnpc-capnp.exe capnproto-tools-win32-$VERSION
doit zip -r ../capnproto-c++-win32-$VERSION.zip capnproto-tools-win32-$VERSION
doit make maintainer-clean doit make maintainer-clean
# repack dist tarball and win32 tools into win32 zip, with DOS line endings
doit tar zxf ../capnproto-c++-$VERSION.tar.gz
find capnproto-c++-$VERSION -name '*.c++' -o -name '*.h' -o -name '*.capnp' -o -name '*.md' -o -name '*.txt' | grep -v testdata | doit xargs unix2dos
doit zip -r ../capnproto-c++-win32-$VERSION.zip capnproto-c++-$VERSION capnproto-tools-win32-$VERSION
rm -rf capnproto-c++-$VERSION capnproto-tools-win32-$VERSION
cd .. cd ..
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment