From e2b4a506f67615a666e0671e0988642c86c963ff Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 23 Mar 2001 22:22:14 +0000 Subject: (check-copyright): New target and rule. (alpha): Depend on it. --- Makefile.maint | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile.maint') diff --git a/Makefile.maint b/Makefile.maint index 0e92310ae..263a2c7c0 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -17,7 +17,7 @@ THIS_VERSION_REGEXP = $(subst .,\.,$(VERSION)) PREV_VERSION := $(shell cat $(prev_version_file)) PREV_VERSION_REGEXP := $(shell echo $(PREV_VERSION)|sed 's/\./\\./g') -tag-package = $(shell echo "$(PACKAGE)" | tr a-z A-Z) +tag-package = $(shell echo "$(PACKAGE)" | tr '[:lower:]' '[:upper:]') tag-this-version = $(subst .,_,$(VERSION)) tag-prev-version = $(subst .,_,$(PREV_VERSION)) this-cvs-tag = $(tag-package)-$(tag-this-version) @@ -177,7 +177,12 @@ define emit-rsync-commands echo ===================================== endef -alpha: writable-files po-check +# Make sure that the copyright date in lib/version-etc.c is up to date. +check-copyright: lib/version-etc.c + @grep 'N_("Copyright (C) $(shell date +%Y) Free' $< > /dev/null \ + || { echo 'out of date copyright in $<; update it' 1>&2; exit 1; } + +alpha: writable-files po-check check-copyright $(MAKE) cvs-dist $(MAKE) -s announcement > /tmp/announce-$(my_distdir) ln $(distdir).tar.gz ../release -- cgit v1.2.3-54-g00ecf