Am Freitag, den 30.01.2009, 10:34 +0100 schrieb Andreas Tille: > In the blends-dev package I use: > > version="(>= `dpkg-parsechangelog | grep "^Version:" | sed -e "s/^Version:[[:space:]]\+\([\.0-9]*\)[[:space:]]*/\1/"`)" > Two other variants which I came to see quite often: dpkg-parsechangelog | awk '/^Version/ { print $2 }' dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 The awk version is the shortest I know of. (Not including the three spaces that could be removed from the statement.) ;) Best regards Manuel
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil