> On Tue, Jul 03, 2007 at 03:56:45PM -0300, Eduardo Habkost wrote:
>  > On Tue, Jul 03, 2007 at 11:52:00AM -0700, Roland McGrath wrote:
>  > > > It's non-obvious to me what %{?buildid} is, but it seems to
>  > > > auto-increment.
>  > > 
>  > > buildid is the "please set this to .me" one.  
>  > > fedora_build is the one to bump on commit.
>  > 
>  > Can't %{fedora_build} be set based on the $Revision$ keyword, to be
>  > incremented automatically on commit, just like %{specrelease} was
>  > auto-incremeted previously?
> 
> Yes, it can. With..
> 
> %define fedora_build %(R="$Revision: 1.3125 $"; RR="${R##: }"; echo %${RR%%?} 
> | sed s/1\.//)
> 
> Which would yield..
> 
> kernel-2.6.22-0.3125.rc7.fc8

%define fedora_cvs_origin 3120
%define fedora_build %(R="$Revision: 1.3125 $"; R="${R%% \$}"; R="${R##: 1.}"; 
expr $R - %{fedora_cvs_origin})

Change fedora_cvs_origin to current $Revision$ s/1.// when you change sublevel.

_______________________________________________
Fedora-kernel-list mailing list
Fedora-kernel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

Reply via email to