1
0
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:
Kris Maglione
2010-12-30 21:34:13 -05:00
parent 04731384f6
commit 47288b3456
11 changed files with 43 additions and 36 deletions

View File

@@ -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)