Gentoo Archives: gentoo-dev

From: Alexander Futasz <acid.punk@×××.net>
To: Matthew Kennedy <mkennedy@g.o>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] [gentoo-user] new package notification
Date: Fri, 13 Sep 2002 05:40:54
Message-Id: 20020913124319.417dab8d.acid.punk@gmx.net
In Reply to: Re: [gentoo-dev] [gentoo-user] new package notification by Matthew Kennedy
1 On 10 Sep 2002 11:30:38 -0500
2 Matthew Kennedy <mkennedy@g.o> wrote:
3
4 > #!/bin/bash
5 >
6 > history=/tmp/package.history
7 >
8 > available_packages() {
9 > ( qpkg -I -nc && qpkg -U -nc ) |uniq |sort
10 > }
11 >
12 > if [ -f ${history} ]
13 > then
14 > available_packages >${history}.new
15 > diff ${history} ${history}.new
16 > mv -f ${history}.new ${history}
17 > else
18 > echo "First time run. Building history..."
19 > available_packages >${history}
20 > fi
21
22 - ( qpkg -I -nc && qpkg -U -nc ) |uniq |sort
23 + ( qpkg -I -nc && qpkg -U -nc ) |sort |uniq
24
25 $ whatis uniq
26 uniq (1) - remove duplicate lines from a sorted file
27
28 -alex

Replies

Subject Author
Re: [gentoo-dev] [gentoo-user] new package notification Matthew Kennedy <mkennedy@g.o>