| 77 | | DSSSConf conf = readConfig(null); |
|---|
| 78 | | char[] vers = conf.settings[""]["version"]; |
|---|
| 79 | | |
|---|
| 80 | | // then get the list of modules |
|---|
| 81 | | foreach (section; conf.sections) { |
|---|
| 82 | | if (conf.settings[section]["type"] == "library") { |
|---|
| 83 | | char[][] files = targetToFiles(section, conf); |
|---|
| 84 | | foreach (file; files) { |
|---|
| 85 | | curpkg ~= file ~ " " ~ vers ~ " " ~ info[0] ~ "\n"; |
|---|
| | 77 | void handleDir() { |
|---|
| | 78 | DSSSConf conf = readConfig(null); |
|---|
| | 79 | char[] vers = conf.settings[""]["version"]; |
|---|
| | 80 | |
|---|
| | 81 | // then get the list of modules |
|---|
| | 82 | foreach (section; conf.sections) { |
|---|
| | 83 | if (conf.settings[section]["type"] == "library" || |
|---|
| | 84 | conf.settings[section]["type"] == "sourcelibrary") { |
|---|
| | 85 | char[][] files = targetToFiles(section, conf); |
|---|
| | 86 | foreach (file; files) { |
|---|
| | 87 | curpkg ~= file ~ " " ~ vers ~ " " ~ info[0] ~ "\n"; |
|---|
| | 88 | } |
|---|
| | 89 | |
|---|
| | 90 | } else if (conf.settings[section]["type"] == "subdir") { |
|---|
| | 91 | char[] origcwd = getcwd(); |
|---|
| | 92 | chdir(section); |
|---|
| | 93 | handleDir(); |
|---|
| | 94 | chdir(origcwd); |
|---|
| | 95 | |
|---|