Fabrizio Polacco <[EMAIL PROTECTED]> writes:
> I use in the Makefile:
> VER     = $(shell expr `pwd` : '.*-\([0-9.]*\)')
> MVER    = ${shell expr `pwd` : '.*-\([0-9]*\).[0-9]*'}

Personally I think it's a bad policy to look at your directory name to
determine your version number; too error prone and unforgiving of
strange but useful conditions.  I use the following to take version
numbers from the changelog:

SRC_VERSION     := $(shell head -1 debian/changelog | cut '-d ' -f 2 | sed 
's/[()]//g')

[note the use of := instead of = as well; 'info make' for more info]

If you need an upstream version you could either munge a version.h
file or whatever, or munge the debian version number.

-- 
.....A. P. [EMAIL PROTECTED]<URL:http://www.onShore.com/>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to