diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-22 21:28:33 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-22 21:28:33 +0200 |
commit | d9c1b8fd30a36d7f05cfb8f830dc62765cf60792 (patch) | |
tree | 5679ca14ab11842a2b5ea054774a3d70471076fc | |
parent | 0bc8813b1e40435ced17c555149e26c5aadbdda6 (diff) | |
download | coreutils-d9c1b8fd30a36d7f05cfb8f830dc62765cf60792.tar.xz |
build: move a project-specific definition to cfg.mk
* cfg.mk (old_NEWS_hash): Define here, ...
* maint.mk: ... not here.
(update-NEWS-hash): Update comment.
Suggestion from Eric Blake.
-rw-r--r-- | cfg.mk | 2 | ||||
-rw-r--r-- | maint.mk | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -39,3 +39,5 @@ gnulib_dir = /gnulib # Now that we have better (check.mk) tests, make this the default. export VERBOSE = yes + +old_NEWS_hash = c58d611d93d218181ed77f81ff2395ff - @@ -431,16 +431,17 @@ NEWS_hash = \ $(srcdir)/NEWS | md5sum -) # Ensure that we don't accidentally insert an entry into an old NEWS block. -old_NEWS_hash = c58d611d93d218181ed77f81ff2395ff - sc_immutable_NEWS: @if test -f $(srcdir)/NEWS; then \ test "$(NEWS_hash)" = '$(old_NEWS_hash)' && : || \ { echo '$(ME): you have modified old NEWS' 1>&2; exit 1; }; \ fi -# Update the hash stored above. Do this after each release. +# Update the hash stored above. Do this after each release and +# for any corrections to old entries. update-NEWS-hash: NEWS - perl -pi -e 's/^(old_NEWS_hash = ).*/$${1}'"$(NEWS_hash)/" $(ME) + perl -pi -e 's/^(old_NEWS_hash = ).*/$${1}'"$(NEWS_hash)/" \ + $(srcdir)/cfg.mk # Ensure that the c99-to-c89 patch applies cleanly. patch-check: |