[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] equivalent for svnversion

From: Joel C. Salomon <joelcsalomon_at_gmail.com>
Date: Wed, 16 Jul 2008 02:07:12 -0400

I'm using Subversion (with Eclipse 3.4 Ganymede, if it matters), and
I'd like to include the version number in my builds. The Subversion
FAQ suggests (at
http://subversion.tigris.org/faq.html#version-value-in-source) adding
the following lines to the Makefile

SVNDEF := -D'SVN_REV="$(shell svnversion -n .)"'
CFLAGS := $(SVNDEF) …

but the version of Subversion packaged with Ubuntu Hardy cannot handle
the SVN 1.5 features Subclipse uses and svnversion complains about it.

I'm sure there's a way to make Subclipse not use v1.5 features, or to
upgrade Hardy's Subversion — not looking for that.

Is there a way to get the SVNKit-based svn client to spit out the
project revision number at a command line, or some other way that can
be integrated into a Makefile? (I'm developing kernel modules with
the kernel build procedure so I need to use Makefiles.)

--Joel
Received on 2008-07-16 08:07:25 CEST

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.