Changeset View
Changeset View
Standalone View
Standalone View
head/release/scripts/mtree-to-plist.awk
Show All 22 Lines | for (i=2; i<=NF; i++) { | ||||
} | } | ||||
} | } | ||||
if (kernel != "") { | if (kernel != "") { | ||||
tags="package=kernel" | tags="package=kernel" | ||||
if (_kernconf != "") { | if (_kernconf != "") { | ||||
tags=tags""_kernconf | tags=tags""_kernconf | ||||
} | } | ||||
} | } | ||||
if ($1 ~ /^\/boot\//) { | |||||
tags="package=bootloader" | |||||
} | |||||
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\//) | |||||
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] == "profile" || a[i] == "debug" || a[i] == "docs") { | } else if (a[i] == "development" || a[i] == "profile" || 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 |