Add bunch of missing includes to fix build with gcc 4.7
[apt.git] / contrib / install-devel / install-devel.lua
1
2 function installdevel(name)
3         pkg = pkgfind(name.."-devel")
4         if pkg and not pkgvercur(pkg) then
5                 markinstall(pkg)
6         end
7         pkg = pkgfind(name.."-devel-static")
8         if pkg and not pkgvercur(pkg) then
9                 markinstall(pkg)
10         end
11 end
12
13 for i, pkg in pairs(pkglist()) do
14         if pkgvercur(pkg) then
15                 installdevel(pkgname(pkg))
16                 name = pkgname(pkg)
17                 while string.gfind(string.sub(name, -1), "%d")() do
18                         name = string.sub(name, 1, -2)
19                 end
20                 if name ~= pkgname(pkg) then
21                         installdevel(name)
22                 end
23         end
24 end