Re: Dynamic version & release numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Olin Oden wrote:

On 3/5/06, Erez Zilber <erezz@xxxxxxxxxxxx> wrote:
Hi,

How can I set the version & release number dynamically in a spec file?
Currently, I do that in the following way:

%define version 3
%define release 456

Version : %{version}
Release : %{release}

I'd like to do something like:

version = grep a value from some file
release = grep a value from some file

So use %() which is lick `` in the shell, as in:

  Version: %(grep version: some_file|cut -d: -f2)

Cheers...james

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list
Thanks. It works.

--

____________________________________________________________

Erez Zilber | 972-9-971-7689

Software Engineer, Storage Team

Voltaire – _The Grid Backbone_

__

www.voltaire.com <http://www.voltaire.com/>


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux