summaryrefslogtreecommitdiff
path: root/include/scan.awk
blob: 39b297722851180e9f548af90cfcddfb1e5be46c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
			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]
	}
}