aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-08 05:04:51 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-08 05:04:51 +0100
commit9d3ec71e43bb00e9750c53cfd8f5ac095d392f5a (patch)
tree83614e2bb2339cfd52fbddaf93b160ca3e86bb1b /build-aux
parent3ca82ea98fc46e3365c514aa3398f54df91bf329 (diff)
downloadblogc-9d3ec71e43bb00e9750c53cfd8f5ac095d392f5a.tar.gz
blogc-9d3ec71e43bb00e9750c53cfd8f5ac095d392f5a.tar.bz2
blogc-9d3ec71e43bb00e9750c53cfd8f5ac095d392f5a.zip
travis: trying to create windows zip
Diffstat (limited to 'build-aux')
-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