Mailinglist Archive: opensuse-buildservice (258 mails)

< Previous Next >
Re: [opensuse-buildservice] Keyword Substitution for OSB (osc) like CVS/RCS?!
  • From: Andreas Gruenbacher <agruen@xxxxxxx>
  • Date: Thu, 19 Aug 2010 12:29:25 +0200
  • Message-id: <201008191229.26506.agruen@xxxxxxx>
On Thursday 19 August 2010 10:19:42 Degenfelder, Guenther wrote:
Is there a keyword substitution in OSB (osc) for inserting revision
information into the source codes like in CVS/RCS?!

And if not, when we will get it?!

I hope never. Please don't send a patch.

Keyword substitution is one of the worst mis-features of rcs/cvs. It was
meant to allow to identify the status of files even after they are taken out
of version control (by, say, shipping them in a tarball).

Except that when the files are further modified (for example, by applying
patches), that information suddenly becomes wrong. The substituted fields are
a real pain when looking at changes with diff: you end up with special
versions of diff that can ignore substituted keywords, except when you don't
think of it or don't have an "appropriate" version of diff around. And then
there are some files which break when they are keyword substituted, so you
need to be able to enable/disable keyword substitution on a per-file basis.

print "VERSION ".'$Revision: 1.3 $'."\n";

You can easily include rpm metadata in binaries if desired (version, release,

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >