mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-02-03 12:23:49 +00:00
initial program to extract GPL source from running Moby for #45
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
18
licensing/gpl.lua
Executable file
18
licensing/gpl.lua
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/lua
|
||||
|
||||
p = {}
|
||||
f = io.open("/lib/apk/db/installed")
|
||||
|
||||
for line in f:lines() do
|
||||
if line == "" then
|
||||
if p.L:match("[Gg][Pg][Ll]") then
|
||||
print(p.P, p.L, p.c)
|
||||
end
|
||||
p = {}
|
||||
else
|
||||
k, v = line:match("(%a):(.*)")
|
||||
if k then
|
||||
p[k] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user