Stephen Leake <[email protected]> writes:
> Now I'm trying to compute the 'debversion' value in the rules file, to
> fully automate this. 'debversion' is in changelog, so I start with
> dpkg-parsechanglog, then use sed:
>
> export debversion := $(shell dpkg-parsechangelog | sed -n -e "s/^Version:
> [0123456789.]+-\([0123456789]+\)$$/\1/p")
>
> A related question: when I run the sed command for soversion in a bash
> shell under emacs, it prints nothing. Which is very puzzling, and makes
> this very hard to debug.
For the record, I figured out this part: '$$' is needed to escape '$' in
a Makefile, but in a shell it is not needed; just '$' matches an end of
line.
'$$' in a bash shell is expanded to some number; I can't figure out what
('$$' doesn't appear in the bash info manual).
--
-- Stephe
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]