From: Jim Meyering Date: Wed, 15 Feb 2006 08:51:47 +0000 (+0000) Subject: (alpha beta major): For `make major', ensure that the X-Git-Tag: v6.0~724 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1442d8987d16c08b4fec7247f90684e4dfb8d880;p=thirdparty%2Fcoreutils.git (alpha beta major): For `make major', ensure that the version string is of the form N.N[.N]*, where N is one or more digits. --- diff --git a/Makefile.maint b/Makefile.maint index 6b3d577e85..455f4756cb 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -616,6 +616,10 @@ $(xd-delta): $(release_archive_dir)/$(prev-tgz) $(distdir).tar.gz .PHONY: alpha beta major alpha beta major: news-date-check $(local-check) + test $@ = major \ + && { echo $(VERSION) | grep -E '^[0-9]+(\.[0-9]+)+$$' \ + || { echo "invalid version string: $(VERSION)" 1>&2; exit 1; }}\ + || : $(MAKE) cvs-dist $(MAKE) $(xd-delta) $(MAKE) -s announcement RELEASE_TYPE=$@ > /tmp/announce-$(my_distdir)