This is the mail archive of the
mailing list for the eCos project.
[Bug 1001632] Patch for making it easy to diff ecos configurations
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Wed, 1 Aug 2012 20:40:29 +0100
- Subject: [Bug 1001632] Patch for making it easy to diff ecos configurations
- Auto-submitted: auto-generated
- References: <email@example.com/>
Please do not reply to this email. Use the web interface provided at:
John Dallaway <firstname.lastname@example.org> changed:
What |Removed |Added
Ever Confirmed|0 |1
--- Comment #4 from John Dallaway <email@example.com> 2012-08-01 20:40:24 BST ---
Thank you for your contribution. I like the idea of a dump command that emits 1
line per CDL item for use with diff and other tools.
I think the format of each line could be improved because:
a) The active/inactive state of a CDL item is distinct from its value and it
seems good to reinforce that distinction in the line format.
b) It can be important to know when the value _source_ (default/inferred/user)
has changed, even if the value has not changed.
My suggested line format, by example, is as follows:
component CYGPKG_MY_COMPONENT active bool default 1
option CYGSEM_MY_OPTION inactive
option CYGOPT_BOOL_OPTION active bool user 0
option CYGOPT_BOOLDATA_OPTION active booldata user 1 "data part"
component CYGPKG_DATA_OPTION active data inferred "abc def ghi"
Note that each line is a space-separated list where the Nth item of the list
has a fixed meaning. The 3rd item is always the active/inactive state, the 5th
item (where present) is always the value source, etc. Note, also, that values
containing spaces are surrounded by double quotes.
In this way we can import the dump into a spreadsheet, or pipe it through "cut"
to extract only those parameters of interest, or "sort" on the CDL macro name,
Do you have any interest in modifying your patch along these lines? Any other
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.