Sun Sep 8 09:00:37 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * automake.in (check_gnits_standards): Only check version number
+ syntax at top level.
+ ($package_version_line): New variable.
+ (scan_configure): Set it.
+ (check_gnits_standards): Use am_conf_line_error.
+ (scan_configure): Remove extraneous whitespace from version
+ number.
+
* m4/AM_PROG_CC_STDC.m4: Applied patch from Jim Meyering.
* automake.in (scan_configure): Handle AM_WITH_REGEX.
&& $(SHELL) ./mdate-sh automake.texi`" > vti.tmp
echo "@set EDITION $(VERSION)" >> vti.tmp
echo "@set VERSION $(VERSION)" >> vti.tmp
- if cmp -s vti.tmp $(srcdir)/version.texi; then \
- rm vti.tmp; \
- else \
- mv vti.tmp $(srcdir)/version.texi; \
- fi
+ cmp -s vti.tmp $(srcdir)/version.texi || cp vti.tmp $(srcdir)/version.texi
+ rm vti.tmp
echo timestamp > $(srcdir)/stamp-vti
mostlyclean-vti:
clean-tags:
distclean-tags:
+ rm -f TAGS ID
maintainer-clean-tags:
- rm -f TAGS ID
distdir = $(PACKAGE)-$(VERSION)
# This target untars the dist file and tries a VPATH configuration. Then
# Actual version we've seen.
$package_version = '';
+# Line number where we saw version definition.
+$package_version_line = 0;
+
# TRUE if we've seen AM_PATH_LISPDIR.
$seen_lispdir = 0;
$seen_version = 1;
$seen_arg_prog = 1;
$seen_prog_install = 2;
- $package_version = $1;
+ ($package_version = $1) =~ s/\s//;
+ $package_version_line = $.;
}
# Some things required by Automake.
{
$seen_version = 1;
$package_version = $1;
+ $package_version_line = $.;
}
elsif (/VERSION=/)
{
&am_error ("\`${relative_dir}/COPYING.LIB' disallowed by Gnits standards");
}
- if ($package_version !~ /^$GNITS_VERSION_PATTERN$/)
- {
- &am_error ("version \`$package_version' doesn't follow Gnits standards");
- }
- elsif (defined $1 && -f 'README-alpha' && $relative_dir eq '.')
+ if ($relative_dir eq '.')
{
- # This means we have an alpha release. See
- # GNITS_VERSION_PATTERN for details.
- &require_file ($GNITS, 'README-alpha');
+ if ($package_version !~ /^$GNITS_VERSION_PATTERN$/)
+ {
+ &am_conf_line_error ($package_version_line,
+ "version \`$package_version' doesn't follow Gnits standards");
+ }
+ elsif (defined $1 && -f 'README-alpha')
+ {
+ # This means we have an alpha release. See
+ # GNITS_VERSION_PATTERN for details.
+ &require_file ($GNITS, 'README-alpha');
+ }
}
}