Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/mtree-to-plist.awk
| Show All 34 Lines | /^[^#]/ { | ||||
| if (length(tags) == 0) | if (length(tags) == 0) | ||||
| next | next | ||||
| if (tags ~ /package=/) { | if (tags ~ /package=/) { | ||||
| ext = pkgname = pkgend = "" | ext = pkgname = pkgend = "" | ||||
| split(tags, a, ","); | split(tags, a, ","); | ||||
| for (i in a) { | for (i in a) { | ||||
| if (a[i] ~ /^package=/) { | if (a[i] ~ /^package=/) { | ||||
| pkgname=a[i] | pkgname=a[i] | ||||
| if ($1 ~ /^\/boot\//) { | |||||
kevans: Probably also need to GC parts of the below `kernel != "" && pkgname != "dtb"` condition | |||||
Done Inline Actionsi think we need to keep that (assuming you mean around line 69) since that's handling the kernel package name. ivy: i think we need to keep that (assuming you mean around line 69) since that's handling the… | |||||
Not Done Inline ActionsRight, I meant the conditional itself (since we don't set pkgname=dtb explicitly), but looking again I realize that it just became implied- they'll have the correct package= tag still in the kernel mtree kevans: Right, I meant the conditional itself (since we don't set pkgname=dtb explicitly), but looking… | |||||
| if (kernel != "" && $1 ~ /^\/boot\/dtb\//) | |||||
| pkgname="dtb" | |||||
| else if ($1 !~ /^\/boot\/firmware\//) | |||||
| pkgname="bootloader" | |||||
| } | |||||
| gsub(/package=/, "", pkgname) | gsub(/package=/, "", pkgname) | ||||
| } else if (a[i] == "config") { | } else if (a[i] == "config") { | ||||
| type="config" | type="config" | ||||
| } else if (a[i] == "development" || a[i] == "debug" || a[i] == "docs") { | } else if (a[i] == "development" || a[i] == "debug" || a[i] == "docs") { | ||||
| pkgend=a[i] | pkgend=a[i] | ||||
| } else { | } else { | ||||
| if (ext != "") | if (ext != "") | ||||
| ext=ext"-"a[i] | ext=ext"-"a[i] | ||||
| Show All 34 Lines | |||||
Probably also need to GC parts of the below kernel != "" && pkgname != "dtb" condition