* guile.m4 may need serial number
@ 2007-12-27 16:39 Mike Gran
2007-12-30 11:11 ` Neil Jerram
0 siblings, 1 reply; 4+ messages in thread
From: Mike Gran @ 2007-12-27 16:39 UTC (permalink / raw)
To: Bug Guile
The automake manual recommends that .m4 files use a serial number for versioning, so that it is possible to tell when an .m4 installed by aclocal is updated.
<quote>
Because third-party macros defined in ‘*.m4’ files are naturally shared between multiple
projects, some people like to version them. This makes it easier to tell which of two M4
files is newer. Since at least 1996, the tradition is to use a ‘#serial’ line for this.
A serial number should be a single line of the form
# serial version
where version is a version number containing only digits and dots. Usually people use a
single integer, and they increment it each time they change the macro (hence the name of
“serial”). Such a line should appear in the M4 file before any macro definition.
The ‘#’ must be the first character on the line, and it is OK to have extra words after
the version, as in
#serial version garbage
Normally these serial numbers are completely ignored by aclocal and autoconf, like
any genuine comment. However when using aclocal’s ‘--install’ feature, these serial
numbers will modify the way aclocal selects the macros to install in the package: if two
files with the same basename exists in your search path, and if at least one of them use a
‘#serial’ line, aclocal will ignore the file that has the older ‘#serial’ line (or the file that
has none).
</quote>
Thanks,
Mike Gran
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile.m4 may need serial number
2007-12-27 16:39 Mike Gran
@ 2007-12-30 11:11 ` Neil Jerram
0 siblings, 0 replies; 4+ messages in thread
From: Neil Jerram @ 2007-12-30 11:11 UTC (permalink / raw)
To: Mike Gran; +Cc: Bug Guile
Mike Gran <spk121@yahoo.com> writes:
> The automake manual recommends that .m4 files use a serial number
> for versioning, so that it is possible to tell when an .m4 installed
> by aclocal is updated.
Sounds good. Could you provide a patch? (I know it's trivial, but it
will give a useful check that we agree on exactly what the new serial
line should contain.)
Neil
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile.m4 may need serial number
@ 2007-12-30 16:08 Mike Gran
2008-01-01 19:13 ` Neil Jerram
0 siblings, 1 reply; 4+ messages in thread
From: Mike Gran @ 2007-12-30 16:08 UTC (permalink / raw)
To: Neil Jerram; +Cc: Bug Guile
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
> From: Neil Jerram <neil@ossau.uklinux.net>
> > The automake manual recommends that .m4 files use a serial number
> > for versioning, so that it is possible to tell when an .m4 installed
> > by aclocal is updated.
>
> Sounds good. Could you provide a patch? (I know it's trivial, but it
> will give a useful check that we agree on exactly what the new serial
> line should contain.)
Since this would be guile.m4 version 1.9 in HEAD, I went with # serial 9.
-- Mike Gran
[-- Attachment #2: guile.m4.diff --]
[-- Type: application/octet-stream, Size: 389 bytes --]
*** guile/guile-core/guile-config/guile.m4.~1.8~ Sun Dec 30 07:59:07 2007
--- guile/guile-core/guile-config/guile.m4 Sun Dec 30 07:59:07 2007
***************
*** 16,21 ****
--- 16,23 ----
## License along with this library; if not, write to the Free Software
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ # serial 9
+
## Index
## -----
##
[-- Attachment #3: ChangeLog.diff --]
[-- Type: application/octet-stream, Size: 396 bytes --]
*** guile/guile-core/guile-config/ChangeLog.~1.39~ Sun Dec 30 07:58:00 2007
--- guile/guile-core/guile-config/ChangeLog Sun Dec 30 07:58:00 2007
***************
*** 1,3 ****
--- 1,7 ----
+ 2007-12-30 Mike Gran <spk121@yahoo.com>
+
+ * guile.m4: add serial number to m4
+
2007-01-04 Kevin Ryde <user42@zip.com.au>
* Makefile.am (guile-config): Use "|" as the sed delimiter, for the
[-- Attachment #4: Type: text/plain, Size: 137 bytes --]
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: guile.m4 may need serial number
2007-12-30 16:08 guile.m4 may need serial number Mike Gran
@ 2008-01-01 19:13 ` Neil Jerram
0 siblings, 0 replies; 4+ messages in thread
From: Neil Jerram @ 2008-01-01 19:13 UTC (permalink / raw)
To: Mike Gran; +Cc: Bug Guile
Mike Gran <spk121@yahoo.com> writes:
>> From: Neil Jerram <neil@ossau.uklinux.net>
>
>> > The automake manual recommends that .m4 files use a serial number
>> > for versioning, so that it is possible to tell when an .m4 installed
>> > by aclocal is updated.
>>
>> Sounds good. Could you provide a patch? (I know it's trivial, but it
>> will give a useful check that we agree on exactly what the new serial
>> line should contain.)
>
>
> Since this would be guile.m4 version 1.9 in HEAD, I went with # serial 9.
Many thanks, that's now in CVS HEAD.
Neil
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-01 19:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-30 16:08 guile.m4 may need serial number Mike Gran
2008-01-01 19:13 ` Neil Jerram
-- strict thread matches above, loose matches on Subject: below --
2007-12-27 16:39 Mike Gran
2007-12-30 11:11 ` Neil Jerram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).