1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 20:14:11 +01:00

Fix initialization from XPI.

This commit is contained in:
Kris Maglione
2014-02-19 17:58:34 -08:00
parent 160e66430c
commit 382ada9abf
4 changed files with 34 additions and 2 deletions

22
common/process_config.awk Normal file
View File

@@ -0,0 +1,22 @@
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 }