X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=blobdiff_plain;f=build;h=fe589f915b9c51bc164c4c987583b40ecabf4cac;hp=c77b02430371ca51ce57b72380f889e7f321a99d;hb=f5e9870ed6d3307c08e583a7874d8c35e0ea6978;hpb=0c0ad44ac6376d9bfb2b84d5f2293d945130ab45 diff --git a/build b/build index c77b024..fe589f9 100755 --- a/build +++ b/build @@ -1,7 +1,7 @@ #!/bin/sh file="pdns-pipe-nmc" -sfx="linux-glibc6.`uname -m`.`date +%Y-%m-%d`.git-`git rev-parse --verify HEAD | cut -c 1-7`" +sfx="linux-glibc6.`uname -m`.`date +%Y-%m-%d`.git-`git describe`" echo "Making $file.$sfx" # tried this: @@ -9,10 +9,10 @@ echo "Making $file.$sfx" # -optl-pthread -pgml g++ "$file" # but cannot make it "only glibc is shared". And with static glibc, # getaddrinfo does not work on systems with different glibc. -ghc --make "$file" +cabal build case $? in 0) ;; *) echo build falied; exit 1 ;; esac -mv "$file" "$file.$sfx" || exit 1 +mv "dist/build/$file/$file" "$file.$sfx" || exit 1 gpg --detach-sign "$file.$sfx"