]> granicus.if.org Git - strace/commitdiff
make-dist: skip news-check for non-releases
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 7 Jun 2016 09:17:12 +0000 (09:17 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 7 Jun 2016 09:19:21 +0000 (09:19 +0000)
* make-dist: Run news-check only when the commit being built
matches a release tag.

make-dist

index 16c979795a29a949274d1746544ba672aee9829f..f0e7296696f5bcf0a9fc78ca0fd0818ca271d71a 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -21,6 +21,11 @@ git checkout -f "$tag"
 ./configure --enable-maintainer-mode
 
 make -s $j distcheck
-make -s $j news-check
+
+if git describe --exact-match --match='v*' >/dev/null; then
+       make -s $j news-check
+else
+       echo 'SKIP: make news-check'
+fi
 
 mv -f strace-*.tar.xz ..