Documenting 'make config' options

Bryan Drewery bryan at shatow.net
Mon Jun 11 19:44:04 UTC 2012


On 6/11/2012 2:03 PM, Warren Block wrote:
> On Sat, 9 Jun 2012, Warren Block wrote:
> 
>>>> That's a nice idea, how do you make it work with dialog?
>>>
>>> No idea, this is still the design phase. :)  Actually, a message I
>>> now can't find suggested that dialog may be able to do it unchanged.
>>
>> Followup:
>>
>> dialog --item-help \
>>  --checklist "Contrived options description example" 21 70 15 \
>>  "ABC" "Enable ABC encapsulation of convoluted insoluble    ..." "on" \
>>  "variations when the complementary quantum reversal feature is
>> undesirable" \
>>  "DOCS" "Build and install documentation" "on" "" \
>>  "XYZ" "Enabling XYZ sets compiler go-fast stripes, defeats ...," "off" \
>>  "all safeguards, and begins a wholesale, awesome, breathtaking data
>> mangling" \
>>  "NLS" "Native Language Support via gettext utilities" "on" ""
> 
> Here is a patch to do it.
> 
> To use, apply patch.  Pick a port and edit the option descriptions to be
> longer than 49 characters.  Then run 'make config'.
> 
> Notes:
> 
> This patch only does descriptions for the plain options right now.
> Changes to the multi and single options would be the same thing.  (Not
> done because I'm hoping someone better at make(1) will have cleaner
> methods.)
> 
> There's a cosmetic problem.  The last description line at the bottom of
> the screen remains after dialog exits.  I have not found a way to clear
> it in dialog.
> 

Cool idea.

FYI --item-help is not supported on 8.3 and earlier so a OSVERSION check
is probably needed.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120611/f0741865/signature-0001.pgp


More information about the freebsd-ports mailing list