parsing the output of cygcheck - or not

2009-08-30 Thread Duane Ellis
I need a simple standard (and script friendly) means of determining what 
is and is not installed under cygwin.


(effectively, I need to write a script to verify that certain cygwin 
tools are, or not already installed).


Option 1:
   Parse the output of  'cygcheck -s'
   doable... but might change.

Option 2
   Parse the content of /etc/setup/installed.db
   (this format seems quite easy... I don't know what the 3rd column in 
the file is for)


Question:
   Which method is the *PREFERED* method that the Cygwin maintainers 
suggest?


Is there some documentation with respect to this?

Thanks.

--Duane.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: parsing the output of cygcheck - or not

2009-08-30 Thread Charles Wilson
Duane Ellis wrote:
 I need a simple standard (and script friendly) means of determining what
 is and is not installed under cygwin.
 
 (effectively, I need to write a script to verify that certain cygwin
 tools are, or not already installed).
 
 Option 1:
 Option 2

Option 3:
cygcheck -cd

--
Chuck


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple