Re: First package: A library
Fabrizio Polacco <fpolacco@icenet.fi> 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. Harris...apharris@onShore.com...<URL:http://www.onShore.com/>
--
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: