1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-19 22:17:59 +01:00
Files
pentadactyl-pm/common/process_manifest.awk

21 lines
388 B
Awk

BEGIN {
chrome = "chrome"
if (suffix)
chrome = suffix
}
{ content = $1 ~ /^(content|skin|locale|resource)$/ }
content && $NF ~ /^[a-z]/ { $NF = "/" name "/" $NF }
content {
sub(/^\.\./, "", $NF);
if (isjar)
$NF = "jar:chrome/" name ".jar!" $NF
else
$NF = chrome $NF
}
{
sub("^\\.\\./common/", "", $NF)
print
}
# vim:se sts=4 sw=4 et ft=awk: