Updated (and new) cygport patches

Charles Wilson cygwin@cwilson.fastmail.fm
Sat Dec 9 07:05:00 GMT 2006


And here's number 5 (or 6, depending on how you count). This one adds 
the ability to call cygport functions (in addition to the usual 
prep/compile/install/ and friends).
It works this way:
 cygport cvs-1.11.22-1 custom0-cvs_check_local_known_fail
will invoke cvs_check_local_known_fail() with no additional arguments.
However,
 cygport cvs-1.11.22-1 custom3-cvs_do_one_test rcslib remote fail
will invoke cvs_do_one_test() with 1ドル=rcslib 2ドル=remote 3ドル=fail.
Note that the number following 'custom' indicates how many arguments to 
consume and forward to the target command. Variants from 0 to 9 are 
accepted.
The custom-command framework will ONLY invoke shell functions; it can't 
be used to run arbitrary commands (although, you could simply edit the 
.cygport file to define a shell function, that then runs those arbitrary 
commands).
The subcommand 'custom-show' will list all shell functions defined 
within the cygport runtime envionment, including those defined in the 
cygport file.
 cygport cvs-1.11.22-1 custom-show
As you can tell from my examples, I needed this functionality to deal 
with cvs's totally braindead testsuite "system". (During development, 
that is. Normal cygport usage for running the cvs testsuite would be 
'cygport cvs-1.11.22-1 check' as usual).
You can test the custom-command functionality (using any old cygport 
file) by doing:
 cygport some-cygport-file custom0-dummy
 cygport some-cygport-file custom1-dummy a
 cygport some-cygport-file custom2-dummy a b
etc -- or even
 cygport some-cygport-file \
 prep \
 custom2-dummy a b \
 compile \
 custom1-dummy c \
 install \
 custom4-dummy d e f g \
 pkg
2006年12月08日 Charles Wilson <...>
	* bin/cygport.in (custom_dummy_core): new function, used to test 
custom-command framework
	(custom_dummy): ditto
	(main): add implentation for custom-show) and customN-*)
--
Chuck
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygport-custom-cmds.patch
URL: <http://cygwin.com/pipermail/cygwin/attachments/20061209/08ed97c5/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /