auto-generate package/Config.in
commita0f533460bcb41a04d592345303348575f2e23e2
authorPhil Sutter <phil@nwl.cc>
Sun, 11 Apr 2010 00:14:56 +0000 (11 02:14 +0200)
committerPhil Sutter <phil@nwl.cc>
Sat, 12 Jun 2010 12:02:48 +0000 (12 14:02 +0200)
tree04a410486da0a160094c86a69db123b21cf58c93
parent27ad978f93dcf77403f80f2c651359267d7602bb
auto-generate package/Config.in

The algorithm in package/pkgmaker works as follows:
1) for all package/*/Makefile
  a) parse PKG_NAME and PKG_SECTION
  b) skip if PKG_SECTION is 'kernel' (special ones)
  c) check if Config.in{,.lib,.manual} contain something
  d) fetch the first word of the first prompt from any result from c)
  e) fetch the verbose section name from package/SECTIONS.list based on
     PKG_SECTION, or just 'libs' if it's about Config.in.lib
  f) write results to package/package_section_list, in the form:
   '<Config.in prompt> <path to Config.in file> <verbose section name>'
2) sort package/package_section_list first by <verbose section name>,
   next by <Config.in prompt>
3) create package/Config.in.auto using the result from 2)
.gitignore
Config.in
package/SECTIONS.list [new file with mode: 0644]
package/pkgmaker