mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-18 14:16:00 +08:00
* 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.
This commit is contained in:
parent
631335306e
commit
80a18dca96
@ -1,5 +1,11 @@
|
|||||||
2004-02-15 Scott James Remnant <scott@netsplit.com>
|
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
|
* m4/ltversion.in: Add a serial number to this file otherwise
|
||||||
libtoolize will refuse to copy it into $pkgdatadir, where it
|
libtoolize will refuse to copy it into $pkgdatadir, where it
|
||||||
is needed by m4/libtool.m4.
|
is needed by m4/libtool.m4.
|
||||||
|
@ -48,8 +48,10 @@ pkgmacro_DATA = m4/libtool.m4 m4/ltdl.m4 m4/ltsugar.m4 m4/ltversion.m4
|
|||||||
EXTRA_DIST += m4/ltversion.in
|
EXTRA_DIST += m4/ltversion.in
|
||||||
$(top_srcdir)/m4/ltversion.m4: $(top_srcdir)/m4/ltversion.in stamp-vcl
|
$(top_srcdir)/m4/ltversion.m4: $(top_srcdir)/m4/ltversion.in stamp-vcl
|
||||||
set `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \
|
set `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; \
|
||||||
|
serial=`echo $$1 | sed 's,^1[.],,g'`; \
|
||||||
sed -e "s,[@]MACRO_VERSION[@],$(VERSION),g" \
|
sed -e "s,[@]MACRO_VERSION[@],$(VERSION),g" \
|
||||||
-e "s,[@]MACRO_REVISION[@],$$1,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" \
|
-e "s,[@]configure_input[@],Generated from ltversion.in; do not edit by hand.,g" \
|
||||||
$(top_srcdir)/m4/ltversion.in > $@t
|
$(top_srcdir)/m4/ltversion.in > $@t
|
||||||
chmod a-w $@t
|
chmod a-w $@t
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# serial @MACRO_REVISION@
|
# serial @MACRO_SERIAL@
|
||||||
# This file is part of GNU Libtool
|
# This file is part of GNU Libtool
|
||||||
|
|
||||||
m4_define([LT_PACKAGE_VERSION], [@MACRO_VERSION@])
|
m4_define([LT_PACKAGE_VERSION], [@MACRO_VERSION@])
|
||||||
|
Loading…
Reference in New Issue
Block a user