]> git.donarmstrong.com Git - wannabuild.git/commit
bin/keep-latest
authorJoachim Breitner <nomeata@debian.org>
Wed, 29 Jul 2009 13:53:36 +0000 (15:53 +0200)
committerJoachim Breitner <nomeata@debian.org>
Wed, 29 Jul 2009 13:53:36 +0000 (15:53 +0200)
commit08c7734af06cb4e2f4eb4117accf1e586d2a7dc0
tree24e9722aad9901bc843d0cfa5f1ba2a13a17211a
parent3b55725ca0ad63cf7885d663ea07d02e8d78b9e4
bin/keep-latest

Usage: ./bin/keep-latest Packages1 Packages2 ..

This perl scripts reads the Packages files given on the command line and
outputs a Packages file which contians each package exactly once, using
the one with the highest version number.
Since it only looks at Package: and Version:, it works with Sources
files as well
bin/keep-latest [new file with mode: 0755]