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:
22
common/process_config.awk
Normal file
22
common/process_config.awk
Normal 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 }
|
||||
Reference in New Issue
Block a user