setup.ini, setup.hint, and update-setup

Charles Wilson
Tue Oct 2 14:20:00 GMT 2001

While setup.exe can handle multi-line "ldesc" entries in setup.ini, the 
update-setup script used to generate that file from the setup.hint's 
will not create the correct results if the hint file has a multi-line 
ldesc entry.

e.g. running update-setup when setup.hint is:
curr 5.2-7
prev 5.2-5a
category Base Libs
requires cygwin libncurses6 terminfo
sdesc "ncurses: libraries for terminal handling (main package)"
ldesc "The curses library routines are a terminal-independent method
of updating character screens with reasonalble optimization. The ncurses
(new curses) library is a freely distributable replacement for the
discontinued 4.4BSD classic curses library.  This package contains
the documentation, static libraries, utility and test programs,
and the header files."

results in a setup.ini entry like this:

@ ncurses
sdesc: "ncurses: libraries for terminal handling (main package)"
ldesc: "The curses library routines are a terminal-independent method
version: 5.2-7
install: latest/ncurses/ncurses-5.2-7.tar.bz2 621191
source:  latest/ncurses/ncurses-5.2-7-src.tar.bz2 1365560
version: 5.2-5a
install: latest/ncurses/ncurses-5.2-5a.tar.bz2 529501
source:  latest/ncurses/ncurses-5.2-5a-src.tar.gz 1822746

(Note that only the first line of ldesc was taken, and it's missing the 
trailing quotation mark)


There are two ways to address this, that I can see:
   1) fix update-setup to deal with multi-line entries
   2) require that all entries fit on a single line -- but it can be 
very long...

I'm all for #2.  Comments?

Oh, and one other thing: update-setup doesn't parse the "category" or 
"requires" entry from the hint file.


More information about the Cygwin-apps mailing list