From b1481dee4ee585396792f2b9d2ec09a162ec677a Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 5 Nov 2015 00:34:54 -0200 Subject: build: added script to build windows releases --- .gitignore | 1 + build-aux/build-windows.sh | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100755 build-aux/build-windows.sh diff --git a/.gitignore b/.gitignore index 1626007..7ce86f1 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ Makefile.in /stamp-h1 .dirstamp /build-aux/* +!/build-aux/build-windows.sh # installed .m4 files /m4/*.m4 diff --git a/build-aux/build-windows.sh b/build-aux/build-windows.sh new file mode 100755 index 0000000..267a8aa --- /dev/null +++ b/build-aux/build-windows.sh @@ -0,0 +1,54 @@ +#!/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 as argument. + + +set -ex + +[[ $# -eq 1 ]] + + +get_version() { + local a=$(basename "${1}") + a="${a%.tar.xz}" + echo "${a#blogc-}" +} + + +build() { + local version=$(get_version "${1}") + local arch=${2} + 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" "${arch}" +done -- cgit v1.2.3-18-g5258 From b48d4a1b0b9db706bf78412de57472cce03047b4 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 5 Nov 2015 00:42:13 -0200 Subject: ignore rpms --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 7ce86f1..65e51f1 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,6 @@ blogc*.html # tarballs blogc-*.tar.* blogc-*.zip + +# rpms +blogc-*.rpm -- cgit v1.2.3-18-g5258 From 287677613d671587bbaa29498a7402eae3d4b038 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 5 Nov 2015 00:42:45 -0200 Subject: build: version bump --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2c78efc..1b694a4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.69]) -AC_INIT([blogc], [0.4], [https://github.com/blogc/blogc], [blogc], [http://blogc.org]) +AC_INIT([blogc], [0.5], [https://github.com/blogc/blogc], [blogc], [http://blogc.org]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) -- cgit v1.2.3-18-g5258 From 6d128f72380a9cb9926559e6a027a5da4ae64467 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 7 Nov 2015 01:42:53 -0200 Subject: build: man: update URL --- configure.ac | 2 +- man/blogc-source.7.ronn | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 1b694a4..4a5c4a7 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ([2.69]) -AC_INIT([blogc], [0.5], [https://github.com/blogc/blogc], [blogc], [http://blogc.org]) +AC_INIT([blogc], [0.5], [https://github.com/blogc/blogc], [blogc], [https://blogc.rgm.io]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIR([m4]) diff --git a/man/blogc-source.7.ronn b/man/blogc-source.7.ronn index b37d5cc..7fa0796 100644 --- a/man/blogc-source.7.ronn +++ b/man/blogc-source.7.ronn @@ -207,19 +207,19 @@ Images are defined using the following syntax: Links are defined using the following syntax: - To learn more about blogc, [click here](http://blogc.org). + To learn more about blogc, [click here](https://blogc.rgm.io). ### Image Links Links can be combined with images: - [![This is the image alt text](picture.jpg)](http://blogc.org) + [![This is the image alt text](picture.jpg)](https://blogc.rgm.io) ### Automatic Links Automatic link is defined with 2 '[' before and 2 ']' after the URL. - To learn more about blogc, visit [[http://blogc.org]]. + To learn more about blogc, visit [[https://blogc.rgm.io]]. ### Line break -- cgit v1.2.3-18-g5258