diff options
author | Jim Meyering <jim@meyering.net> | 2006-02-15 08:51:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-02-15 08:51:47 +0000 |
commit | 1442d8987d16c08b4fec7247f90684e4dfb8d880 (patch) | |
tree | 70772703ebcf0934471a55b35af0155e58a73d80 | |
parent | 05e61daca4d7e0ed1f82e0e604812b90b8bcbde1 (diff) | |
download | coreutils-1442d8987d16c08b4fec7247f90684e4dfb8d880.tar.xz |
(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.
-rw-r--r-- | Makefile.maint | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.maint b/Makefile.maint index 6b3d577e8..455f4756c 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) |