Re: upstream version in debian/rules in a $VARIABLE?
Hi,
> Do I have easy access to the upstream version in debian/rules?
>
> Of course, I can get it, but that'd be silly if it's already there.
>
> dpkg-parsechangelog | grep ^Version: | cut -f 2 -d \ | cut -f 1 -d -
>
> (I know, I really should read the sed and awk docs, it's probably easy to
> fold grep, cut, cut into one.)
I would be interested since I'm doing the following in yc-el package;
VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version: \([^-]*\).*$$/\1/p')
regards,
junichi
Reply to: