1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-15 20:02:10 +02:00

(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.
This commit is contained in:
Jim Meyering
2006-02-15 08:51:47 +00:00
parent 05e61daca4
commit 1442d8987d

View File

@@ -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)