Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2009 09:49:12 -0400
From:      Steve Bertrand <steve@ibctech.ca>
To:        "freebsd-questions@freebsd.org Questions -" <freebsd-questions@freebsd.org>
Subject:   Re: Automagic revision numbers with Perl Modules and SVN
Message-ID:  <4A325CD8.6020704@ibctech.ca>
In-Reply-To: <4A304AD3.10109@ibctech.ca>
References:  <4A304AD3.10109@ibctech.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Steve Bertrand wrote:
> Hey all,
> 
> I've been migrating all of my projects from CVS to SVN (starting over
> from the beginning).
> 
> All of the projects in question are Perl modules.

[..snip..]

> Any guidance to fix the version numbering (especially to fix the FreeBSD
> package db) to make it automagic again, is very welcome:

Well, it took longer than I had hoped/expected, but I've finally got my
version automatic again. For the archives:

# cd project_dir
# svn propset svn:keywords "Revision"

...and:

%svn diff -r56 EagleUser.pm
...
-$VERSION = sprintf "%d.%03d", q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/;

+$VERSION = sprintf "%d", q$Revision$ =~ /(\d+)/;

It took me quite a while to get that change right. Many of the examples
on the 'net did not have the sprintf(), which resulted in $VERSION == 1
no matter what. Once I did the next commit, the current revision was
inserted into 'Revision'.

...now, my desired result:

%pkg_version -v | grep Eagle

bsdpan-EagleUser-73

Cheers and thanks!

Steve

[-- Attachment #2 --]
0	*H
010	+0	*H
00CK9AbxIUw0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090507231610Z
100507231610Z0B10UThawte Freemail Member10	*H
	steve@ibctech.ca0"0
	*H
0
DZ杙<2IⵀfrsE6q?0.>
S@Œ!V?A\Q
r-aZ
Ōf/0{OYQhɏߴ
F_\Q0BF=<_.a*3epeY|tݼcvlҷ+@piQA{2E9WN4[Z`h6VM/zPbd(GC^K6XV4j<t-0+0U0steve@ibctech.ca0U00
	*H
æ|85aQz-*3HG		.s*Fw*`HvFw;9ytƘn0taC/:WC+LÙ{Oq 1n00CK9AbxIUw0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
090507231610Z
100507231610Z0B10UThawte Freemail Member10	*H
	steve@ibctech.ca0"0
	*H
0
DZ杙<2IⵀfrsE6q?0.>
S@Œ!V?A\Q
r-aZ
Ōf/0{OYQhɏߴ
F_\Q0BF=<_.a*3epeY|tݼcvlҷ+@piQA{2E9WN4[Z`h6VM/zPbd(GC^K6XV4j<t-0+0U0steve@ibctech.ca0U00
	*H
æ|85aQz-*3HG		.s*Fw*`HvFw;9ytƘn0taC/:WC+LÙ{Oq 1n0?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0	+0	*H
	1	*H
0	*H
	1
090612134912Z0#	*H
	1J<S雦}l?0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAK9AbxIUw0
	*H
9T=qlR35fi
M-ezYز]=DOFSk;Q`>~
옕Ct7KU2BFߨIwKl!:~N]C~\Q:f
Uk)_r߯}"H[0#3(!C
@JҲ(6TghJ
di[ѡRYʕ$L*B[

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A325CD8.6020704>