config/companion_libs/mpc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Sep 08 22:42:48 2009 +0200 (2009-09-08)
changeset 1524 1031ea5af395
parent 1384 b23f3c2e0c73
child 1531 d173907c6c7e
permissions -rw-r--r--
kconfig: allow stdin/stdout redirection

Allow stdin/stdout redirection for the CLI conf (not mconf).
This allows to recall a sample and automatically apply the defaults
to new configuration option, with something like the following:
yes "" |ct-ng "sample_name"
     1 # MPC options
     2 
     3 choice
     4     bool
     5     prompt "MPC version"
     6 
     7 config MPC_V_0_6
     8     bool
     9     prompt "0.6"
    10 
    11 # CT_INSERT_VERSION_ABOVE
    12 # Don't remove above line!
    13 endchoice
    14 
    15 config MPC_VERSION
    16     string
    17     default "0.6" if MPC_V_0_6
    18 # CT_INSERT_VERSION_STRING_ABOVE
    19 # Don't remove above line!