%transform = ( 'INSTALL-INFO' => ! option 'no-installinfo',
'INSTALL-MAN' => ! option 'no-installman',
'HAVE-MANS' => !! var ('MANS'),
- 'CK-NEWS' => !! option 'check-news',
'SUBDIRS' => !! var ('SUBDIRS'),
'TOPDIR_P' => $relative_dir eq '.',
define_variable ('subdir', INTERNAL, $relative_dir);
define_variable ('am.conf.is-topdir', INTERNAL,
$relative_dir eq '.' ? "yes" : "");
+ define_variable ('am.conf.check-news', INTERNAL,
+ option 'check-news' ? "yes" : "");
define_variable ('am.conf.aux-dir', INTERNAL, $am_config_aux_dir);
define_variable ('am.relpath.makefile', INTERNAL, basename ($makefile));
define_variable ('am.relpath.makefile.am', INTERNAL,
## in case some explanatory text is desirable.
##
if %?TOPDIR_P%
-if %?CK-NEWS%
- @case `sed 15q $(srcdir)/NEWS` in \
- *"$(VERSION)"*) : ;; \
- *) \
+ @$(if $(am.conf.check-news), \
+ sed 15q $(srcdir)/NEWS | grep -F '$(VERSION)' || { \
echo "NEWS not updated; not releasing" 1>&2; \
- exit 1;; \
- esac
-endif %?CK-NEWS%
+ exit 1; \
+ })
endif %?TOPDIR_P%
if %?TOPDIR_P%
$(am.dist.remove-distdir)