App::Cme::Command::modify
Modify the configuration of an application
- Provided by: cme (Version: 1.010-1)
- Report a bug
Modify the configuration of an application
version 1.010
# modify configuration with command line cme modify dpkg source 'format="(3.0) quilt"' # likewise with an application that accepts file override cme modify dpkg-copyright ~~ 'Comment="Modified with cme"'
Modify a configuration file with the values passed on the command line. These command must follow the syntax defined in Config::Model::Loader (which is similar to the output of cme dump command)
Example:
cme modify dpkg source format="(3.0) quilt" cme modify multistrap my_mstrap.conf sections:base source="http://ftp.fr.debian.org"
Some application like dpkg-copyright allows you to override the configuration file name. The problem is to make the difference between the overridden file name and the modification instruction you want to apply.
Either you specify both overridden file name modifications:
cme modify dpkg-copyright ubuntu/copyright 'Comment="Silly example"
Or you use "~~" to use the default file name:
cme modify dpkg-copyright ~~ 'Comment="Another silly example"
Another example which restores the default value of the text of all GPL like licenses :
cme modify dpkg-copyright ~~ 'License=~/GPL/ text~'
Or update the copyright years of the package maintainer's file:
cme modify dpkg-copyright ~~ 'File=debian/* Copyright=~s/2013/2014/'
See "Global Options" in cme.
cme
Dominique Dumont
This software is Copyright (c) 2016 by Dominique Dumont.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999