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

23 lines
400 B
Awk

BEGIN {
chrome = "chrome"
if (suffix)
chrome = suffix
}
/^ \}/ { on = 0 }
on && $NF ~ /^"([a-z]|\.\/)/ {
$NF = "\"/" name "/" substr($NF, 2)
}
/./ && on {
sub(/^"\.\./, "\"", $NF);
$NF = "\"" chrome substr($NF, 2)
}
/./ && on {
gsub(/\/\.\//, "/")
sub(/^\"\.\.\/common\//, "\"", $NF)
$0 = " " $0
}
//
/^ "resources": \{/ { on = 1 }