aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/build-windows.sh
blob: 3ed6b59eff1eeac80ec0f264f3e22831f656f9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -ex

PN="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
PV="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
DEST_DIR="${PN}-${TARGET}-${PV}"

${MAKE_CMD:-make} blogc.exe

rm -rf "${DEST_DIR}"
mkdir -p "${DEST_DIR}"

cp .libs/blogc.exe "${DEST_DIR}/"
cp ../LICENSE "${DEST_DIR}/"
cp ../README.md "${DEST_DIR}/"

zip "${DEST_DIR}.zip" "${DEST_DIR}"/*