scm-add - This adds a new file to a coniguration directory.
scm-add [-b <base directory>] [-c <configuration directory] <file0> [<file1>]...
This copies files from the file system up to the configuration directory.
More than one may be added at a time.
The add method will be invoked for each, regardless of the success of the previous.
The -b switch can be used to to specify a base directory.
If not specified via switch, the enviromental variable will be used.
This is the configuration directory to use.
If not specified, one will automatically be choosen.
This command will be invoked on the file under the configuration directory after it has been added.
'%%%file%%%' will be replaced with the escaped full path to the new file.
Wether or not the configuration directory should automatically be created if it does not exist.
This is the base directory to use.
This is the election method to use.
If not specified, the default will be used.
Any error codes not specified below are Sys::Config::Manage error codes.
Failed to copy one or more files to the configuration directory.
Check std err for any error output from Sys::Config::Manage.
Something script specific.
Copyright (c) 2011, Zame C. Bowers-Hadley <email@example.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS` OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
scm-up - This copies files from the file system up to the configuration directory.