Source

seamless / build-archives.sh

#!/bin/bash

set -e

go build
version=$(./seamless --version | awk '{print $2}')

filename=seamless-${version}-amd64.bz2
echo "building ${filename}"
bzip2 -c seamless > ${filename}

filename=seamless-${version}-386.bz2
echo "building ${filename}"
GOARCH=386 go build
bzip2 -c seamless > ${filename}