2004-02-15 Scott James Remnant <scott@netsplit.com>
+ * Makefile.am (m4/ltversion.m4): Generate serial number by
+ removing initial '1.' from the revision, replace @MACRO_SERIAL@
+ with this new variable.
+ * m4/ltversion.in: Use @MACRO_SERIAL@ for the serial number
+ as some shells don't like a '.' when using test.
+
* m4/ltversion.in: Add a serial number to this file otherwise
libtoolize will refuse to copy it into $pkgdatadir, where it
is needed by m4/libtool.m4.
EXTRA_DIST += m4/ltversion.in
$(top_srcdir)/m4/ltversion.m4: $(top_srcdir)/m4/ltversion.in stamp-vcl
set `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \
+ serial=`echo $$1 | sed 's,^1[.],,g'`; \
sed -e "s,[@]MACRO_VERSION[@],$(VERSION),g" \
-e "s,[@]MACRO_REVISION[@],$$1,g" \
+ -e "s,[@]MACRO_SERIAL[@],$$serial,g" \
-e "s,[@]configure_input[@],Generated from ltversion.in; do not edit by hand.,g" \
$(top_srcdir)/m4/ltversion.in > $@t
chmod a-w $@t
# ltversion.m4 -- version numbers -*- Autoconf -*-
# @configure_input@
-# serial @MACRO_REVISION@
+# serial @MACRO_SERIAL@
# This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [@MACRO_VERSION@])