mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-06 07:55:46 +01:00
Mangle pathnames in the XPI to foil the fastload cache on upgrade and fix the command line option handler in fresh installs.
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
{ content = $1 ~ /^(content|skin|locale)$/ }
|
||||
BEGIN { if (!chrome) chrome = "chrome" }
|
||||
{ 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
|
||||
$NF = chrome $NF
|
||||
}
|
||||
{
|
||||
sub("^\\.\\./common/", "", $NF)
|
||||
|
||||
Reference in New Issue
Block a user