aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/build-windows.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-08 20:33:21 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-03-08 20:33:21 +0100
commit214d09891909ce5505d7bdbc5c848a9c4be23c0d (patch)
tree143098c6b3529debd326d6cee04d1bd18556a456 /build-aux/build-windows.sh
parentd8f0fc6cb36a9d7c153a974b5095a4efb8c8add0 (diff)
downloadblogc-214d09891909ce5505d7bdbc5c848a9c4be23c0d.tar.gz
blogc-214d09891909ce5505d7bdbc5c848a9c4be23c0d.tar.bz2
blogc-214d09891909ce5505d7bdbc5c848a9c4be23c0d.zip
travis: added script to upload distfiles
Diffstat (limited to 'build-aux/build-windows.sh')
-rwxr-xr-xbuild-aux/build-windows.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/build-aux/build-windows.sh b/build-aux/build-windows.sh
deleted file mode 100755
index bdecc8b..0000000
--- a/build-aux/build-windows.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-# This script builds windows binaries, given a source tarball.
-# It was designed to work on Fedora, and requires the following packages:
-#
-# mingw32-gcc mingw64-gcc zip
-#
-# This script must be called with the xz source tarball and the target version
-# as arguments.
-
-
-set -ex
-
-[[ $# -eq 2 ]]
-
-
-build() {
- local version=${2}
- local arch=${3}
- local build_dir="/tmp/blogc_build_${version}_${arch}"
- local dest_dir="/tmp/blogc-${version}-w${arch}"
-
- rm -rf "${build_dir}"
- mkdir -p "${build_dir}"
- tar -xvf "${1}" -C "${build_dir}"
-
- pushd "${build_dir}/blogc-${version}" &> /dev/null
- "mingw${arch}-configure"
- make
- popd &> /dev/null
-
- rm -rf "${dest_dir}"
- mkdir -p "${dest_dir}"
- cp "${build_dir}/blogc-${version}/.libs/blogc.exe" "${dest_dir}/"
- cp "${build_dir}/blogc-${version}/LICENSE" "${dest_dir}/"
- cp "${build_dir}/blogc-${version}/README.md" "${dest_dir}/"
-
- pushd "$(dirname ${dest_dir})" &> /dev/null
- zip "$(basename ${dest_dir}).zip" "$(basename ${dest_dir})"/*
- popd &> /dev/null
-
- mv "${dest_dir}.zip" .
-}
-
-
-for arch in 32 64; do
- build "$1" "$2" "${arch}"
-done