]> www.average.org Git - pdns-pipe-nmc.git/blobdiff - build
beta build
[pdns-pipe-nmc.git] / build
diff --git a/build b/build
index c77b02430371ca51ce57b72380f889e7f321a99d..004b9736533e3ff802c5e1258664f67a64102e30 100755 (executable)
--- 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,7 +9,7 @@ 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 ;;