]> www.average.org Git - pdns-pipe-nmc.git/blob - build
Merge branch 'master' of ssh://git.average.org/~/pdns-pipe-nmc
[pdns-pipe-nmc.git] / build
1 #!/bin/sh
2
3 file="pdns-pipe-nmc"
4 sfx="linux-glibc6.`uname -m`.`date +%Y-%m-%d`.git-`git rev-parse --verify HEAD | cut -c 1-7`"
5 echo "Making $file.$sfx"
6
7 # tried this:
8 #ghc --make -static -optc-static -optl-shared-libgcc -optl-static -optl-pthread
9 # but cannot make it "only glibc is shared". And with static glibc,
10 # getaddrinfo does not work on systems with different glibc.
11 ghc --make "$file"
12 case $? in
13 0) ;;
14 *) echo build falied; exit 1 ;;
15 esac
16 mv "$file" "$file.$sfx" || exit 1
17 gpg --detach-sign "$file.$sfx"