1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 18:22:27 +01:00
Files
pentadactyl-pm/liberator/process_manifest.awk
2008-12-02 13:42:44 -05:00

12 lines
230 B
Awk

{ content = $1 ~ /^(content|skin|locale)$/ }
content && $NF ~ /^[a-z]/ { $NF = name "/" $NF }
content {
sub(/^\.\.\//, "", $NF);
$NF = "jar:chrome/" name ".jar!" $NF
}
{
sub("^\\.\\./liberator/", "", $NF)
print
}