From: SourceForge.net <no...@so...> - 2010-03-13 21:08:29
|
Feature Requests item #2896324, was opened at 2009-11-12 01:40 Message generated for change (Comment added) made by henryn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=622066&aid=2896324&group_id=98788 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface Improvements (example) Group: None >Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Simple conditions in cofig file Initial Comment: Sometimes one or another option in config file depends of command line parameters or other options in config file. It will be usefull to add condional processing of options: if $CONSOLE == 'fltk' # $CONSOLE - predefined variable with name of console from -t <...> cocon=150x65 else cocon=150x69 endif ---------------------------------------------------------------------- >Comment By: Henry N. (henryn) Date: 2010-03-13 22:08 Message: This is doable also without IF conditions. Simple move the conditions from inside config file to the command line, for example: A) colinux-daemon -t fltk cocon=150x65 @colinux.conf B) colinux-daemon -t nt cocon=150x69 @colinux.conf Or, create 3 configs. colinux-basic.conf : with all your stuff colinux-fltk.conf : with options only in fltk console colinux-nt.conf : with options only for nt console Than run two different versions from batch or shortcut: A) colinux-daemon -t fltk @colinux-fltk.conf @colinux-basic.conf B) colinux-daemon -t nt @colinux-nt.conf @colinux-basic.conf ---------------------------------------------------------------------- Comment By: Henry N. (henryn) Date: 2009-11-12 20:47 Message: For this move the cocon into the batch from where you should set also fltk or nt. for example FLTK.BAT: colinux_daemon -t fltk cocon=150x65 @colinux.conf and the other NT.BAT: colinux_daemon -t nt cocon=150x69 @colinux.conf ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=622066&aid=2896324&group_id=98788 |