diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-10 02:11:55 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-05-10 02:11:55 +0200 |
commit | 097fc9bdb386705a63a8021d5467266a70e22a6e (patch) | |
tree | 9c677a6d9281c4407dc6eef18c5a36ca0591288e /build-aux/build-windows.sh | |
parent | 5379543ca4386c22872c380ccd60d77e51afa134 (diff) | |
download | blogc-097fc9bdb386705a63a8021d5467266a70e22a6e.tar.gz blogc-097fc9bdb386705a63a8021d5467266a70e22a6e.tar.bz2 blogc-097fc9bdb386705a63a8021d5467266a70e22a6e.zip |
build: use predefined yatr project variables
Diffstat (limited to 'build-aux/build-windows.sh')
-rwxr-xr-x | build-aux/build-windows.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/build-aux/build-windows.sh b/build-aux/build-windows.sh index 3ed6b59..b00fbe6 100755 --- a/build-aux/build-windows.sh +++ b/build-aux/build-windows.sh @@ -2,17 +2,15 @@ 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}" +DESTDIR="${PN}-${TARGET}-${PV}" ${MAKE_CMD:-make} blogc.exe -rm -rf "${DEST_DIR}" -mkdir -p "${DEST_DIR}" +rm -rf "${DESTDIR}" +mkdir -p "${DESTDIR}" -cp .libs/blogc.exe "${DEST_DIR}/" -cp ../LICENSE "${DEST_DIR}/" -cp ../README.md "${DEST_DIR}/" +cp .libs/blogc.exe "${DESTDIR}/" +cp ../LICENSE "${DESTDIR}/" +cp ../README.md "${DESTDIR}/" -zip "${DEST_DIR}.zip" "${DEST_DIR}"/* +zip "${DESTDIR}.zip" "${DESTDIR}"/* |