Automagic revision numbers with Perl Modules and SVN
steve at ibctech.ca
Thu Jun 11 00:07:39 UTC 2009
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.
Can someone give me a tip on what I have to do in order to prevent the
following when I do a ``make install''?:
FreeBSD: Registering installation in the package database
Cannot create directory /var/db/pkg/bsdpan-EagleUser-1.009: File exists
I'm trying to follow documentation on the 'net, but to no avail.
Following is a patch to how I had the module configured for CVS, and
what I changed to based on what I found on the web for SVN. To be
honest, I'm not a coder, so I don't even know if what I'm changing is in
the proper place or not.
Any guidance to fix the version numbering (especially to fix the FreeBSD
package db) to make it automagic again, is very welcome:
%svn diff -r56 EagleUser.pm
--- EagleUser.pm (revision 56)
+++ EagleUser.pm (working copy)
@@ -13,7 +13,7 @@
@EXPORT = qw(
-$VERSION = sprintf "%d.%03d", q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/;
+$VERSION = (q$Revision: 1.9 $ =~ /: (\d+)\.(\d+)/;
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090611/c4cad933/smime.bin
More information about the freebsd-questions