1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 00:07:59 +01:00
Files
pentadactyl-pm/common/process_manifest.awk
2014-02-19 17:58:34 -08:00

26 lines
425 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
}
{
gsub(/\/\.\//, "/")
sub("^\\.\\./common/", "", $NF)
print
}
# vim:se sts=4 sw=4 et ft=awk: