]> www.average.org Git - pdns-pipe-nmc.git/blob - build
format of MX and SRV needs one more tab
[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 \
9 #           -optl-pthread -pgml g++ "$file"
10 # but cannot make it "only glibc is shared". And with static glibc,
11 # getaddrinfo does not work on systems with different glibc.
12 ghc --make "$file"
13 case $? in
14 0) ;;
15 *) echo build falied; exit 1 ;;
16 esac
17 mv "$file" "$file.$sfx" || exit 1
18 gpg --detach-sign "$file.$sfx"