summaryrefslogtreecommitdiffstats
path: root/scripts/label_packets.awk
blob: 0d456e066538f335499873048868be3ea1e5323a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/awk

#
# find lines matching PACKAGES-$(PTXCONF_APACHE2) += apache2
#
/^[[:blank:]]*PACKAGES-\$\(.*\)[[:blank:]]*\+\=.*[[:blank:]]*$/ {

	# remove everything but the label and packet name
	gsub(/^[[:blank:]]*PACKAGES-\$\(/,"")
	gsub(/\)[[:blank:]]*\+\=/,":")
	gsub(/[[:blank:]]/,"")
	
	print $0
}