mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:37:58 +01:00
16 lines
326 B
Awk
16 lines
326 B
Awk
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
|
|
}
|
|
{
|
|
sub("^\\.\\./common/", "", $NF)
|
|
print
|
|
}
|
|
|