Re: Closing bugs, incrementing release number, and uploads to mentors.debian.net
Ben Finney <ben+debian@benfinney.id.au> writes:
> Okay. So is there a normal way to have the ‘-v’ option during a run set
> to “include all entries newer than what's currently in Debian”? Or do
> I have to remember to set it manually each time I add a new release and
> build?
I have to look it up for my packages, but you could script something
fairly easily via a wrapper around whatever package building tool that you
use. Something like:
#!/bin/sh
set -e
package=`dpkg-parsechangelog | grep ^Source: | cut -f 2 -d ' '`
current=`apt-cache showsrc "$package" | grep ^Version: | cut -f 2 -d ' ' \
| sort -r | head -n 1`
if [ -n "$current" ] ; then
git-buildpackage -v"$current" "$@"
else
git-buildpackage -v0 "$@"
fi
This assumes apt-cache showsrc will find packages in unstable and
experimental. If it won't, you may have to do something more complicated
(grep-dctrl would probably help).
The sort there isn't entirely correct; you really want to do a dpkg
version comparison.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: