4 uname = gname = mode = flags = tags = type = ""
5 for (i=2; i<=NF; i++) {
8 gsub(/uname=/, "", uname)
9 } else if ($i ~ /^gname=/) {
11 gsub(/gname=/, "", gname)
12 } else if ($i ~ /^mode=/) {
14 gsub(/mode=/,"", mode)
15 } else if ($i ~ /^flags=/) {
17 gsub(/flags=/, "", flags)
18 } else if ($i ~ /^tags=/) {
20 gsub(/tags=/, "", tags)
21 } else if ($i ~ /^type=dir/) {
27 if (_kernconf != "") {
31 if (length(tags) == 0)
33 if (tags ~ /package=/) {
34 ext = pkgname = pkgend = ""
37 if (a[i] ~ /^package=/) {
39 gsub(/package=/, "", pkgname)
40 } else if (a[i] == "config") {
42 } else if (a[i] == "development" || a[i] == "profile" || a[i] == "debug" || a[i] == "docs") {
55 if (pkgend == "docs") {
58 pkgname=pkgname"-"pkgend
62 print "No packages specified in line: $0"
67 if (_kernconf != "") {
68 output=output"."_kernconf
70 if ($1 ~ /^\/usr\/lib\/debug\/boot/) {
71 output=output"-debug.plist"
76 output=pkgname".plist"
79 print "@"type"("uname","gname","mode","flags") " $1 > output