aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-aux/build-travis.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/build-aux/build-travis.sh b/build-aux/build-travis.sh
index eb6262a..0d656e3 100755
--- a/build-aux/build-travis.sh
+++ b/build-aux/build-travis.sh
@@ -29,3 +29,17 @@ pushd build > /dev/null
popd > /dev/null
make -C build "${MAKE_TARGET}"
+
+if [[ "x${TARGET}" = xw* ]]; then
+ VERSION="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
+ DEST_DIR="blogc-${VERSION}-${TARGET}"
+
+ rm -rf "${DEST_DIR}"
+ mkdir -p "${DEST_DIR}"
+
+ cp build/.libs/blogc.exe "${DEST_DIR}/"
+ cp LICENSE "${DEST_DIR}/"
+ cp README.md "${DEST_DIR}/"
+
+ zip "${DEST_DIR}.zip" "${DEST_DIR}"/*
+fi