blob: 0f027823263b6cd71c40cdb20e67edc6c75e230f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
BEGIN { FS="/" }
$1 ~ /^feeds/ { FEEDS[$NF]=$0 }
$1 !~ /^feeds/ { PKGS[$NF]=$0 }
END {
# Filter-out OpenWrt packages which have a feeds equivalent
for (pkg in PKGS)
if (pkg in FEEDS) {
print PKGS[pkg] > of
delete PKGS[pkg]
}
n = asort(PKGS)
for (i=1; i <= n; i++) {
print PKGS[i]
}
n = asort(FEEDS)
for (i=1; i <= n; i++){
print FEEDS[i]
}
}
|