]> arthur.barton.de Git - nagcollect.git/commitdiff
Distribution archive now is named "NagCollect-R<rel>.tar.gz"
authorAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 15:20:25 +0000 (17:20 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 1 Sep 2010 15:20:25 +0000 (17:20 +0200)
The current release number is extracted from the ChangeLog file.

Makefile

index aad396b9058674eedba92723bf7db039a07dbcd7..bced5341a8277b6e8436c674598f9e0a745cb414 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,9 +56,10 @@ install-client:
 check:
 
 dist: distclean
 check:
 
 dist: distclean
-       dir=`basename $${PWD}` \
+       rel=`grep "^NagCollect " ChangeLog|awk "{print \\\$$3 }"|head -n 1`; \
+        dir=`basename $${PWD}` \
         && cd .. \
         && cd .. \
-        && COPYFILE_DISABLE=true tar cvzf "$${dir}.tar.gz" \
+        && COPYFILE_DISABLE=true tar cvzf "NagCollect-R$${rel}.tar.gz" \
             --exclude .git "$${dir}"
 
 distcheck: check dist
             --exclude .git "$${dir}"
 
 distcheck: check dist