From: Eugene Crosser Date: Sat, 19 Apr 2014 14:53:17 +0000 (+0400) Subject: build script X-Git-Tag: 0.9.0.0~38 X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=9429c1e6a9dedaf8c8a4fb74d9a54eab554d7fff;p=pdns-pipe-nmc.git build script --- diff --git a/build b/build new file mode 100755 index 0000000..d425374 --- /dev/null +++ b/build @@ -0,0 +1,13 @@ +#!/bin/sh + +file="pdns-pipe-nmc" +sfx="`uname -m`,`date +%Y-%m-%d`.git-`git rev-parse --verify HEAD | cut -c 1-7`" +echo "Making $file.$sfx" + +ghc --make "$file" +case $? in +0) ;; +*) echo build falied; exit 1 ;; +esac +mv "$file" "$file.$sfx" || exit 1 +gpg --detach-sign "$file.$sfx"