summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-23 22:22:14 +0000
committerJim Meyering <jim@meyering.net>2001-03-23 22:22:14 +0000
commite2b4a506f67615a666e0671e0988642c86c963ff (patch)
treeefed8bd7454f59128365f0b97a294f75cbae359e /Makefile.maint
parentc9cab79e768e0324f872586bdf7a249b249fe635 (diff)
downloadcoreutils-e2b4a506f67615a666e0671e0988642c86c963ff.tar.xz
(check-copyright): New target and rule.
(alpha): Depend on it.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint9
1 files changed, 7 insertions, 2 deletions
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