Permalink
Browse files

build script for master builds

  • Loading branch information...
justone committed Apr 28, 2014
1 parent 91be715 commit e06b04f20bf6e4c029561723965c41506c6b45c2
Showing with 21 additions and 5 deletions.
  1. +2 −0 .gitignore
  2. +1 −5 bootstrap → bootstrap.template
  3. +18 −0 build.sh
@@ -1 +1,3 @@
/pmb*
# releases
201?-*
@@ -3,8 +3,7 @@
use strict;
use warnings;
# TODO: template these
my $version = '2014-04-25-0738afa';
my $version = 'VERSION';
my $base_url = 'http://get.pmb.io';
my $os = $^O;
@@ -98,7 +97,4 @@ sub INFO {
print @_;
}
# TODO: template these
__END__
6251ed7fb981d8bc27e3c1e71def7a78 pmb_darwin_amd64
041374577f756a6f102a003373060c9f pmb_linux_amd64
@@ -0,0 +1,18 @@
#!/bin/bash
ABBREV_SHA1=$(git log --format=%h -1)
DATE=$(date +%Y-%m-%d-%H%M)
VERSION="${DATE}-${ABBREV_SHA1}"
echo "Building $VERSION"
echo
gox -osarch="darwin/amd64 linux/amd64"
mkdir $VERSION
cp bootstrap.template $VERSION/bootstrap
perl -p -i -e "s/VERSION/$VERSION/g" $VERSION/bootstrap
md5sum pmb_* >> $VERSION/bootstrap
cp pmb_* $VERSION/

0 comments on commit e06b04f

Please sign in to comment.