NAME
scm-add - This adds a new file to a coniguration directory.
SYNOPSIS
scm-add [-b <base directory>] [-c <configuration directory] <file0> [<file1>]...
DESCRIPTION
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.
SWITCHES
-b <base directory>
The -b switch can be used to to specify a base directory.
If not specified via switch, the enviromental variable will be used.
-c <configuration directory>
This is the configuration directory to use.
If not specified, one will automatically be choosen.
ENVIROMENTAL VARIABLES
SysConfigManage_addCommand
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.
SysConfigManage_autoCreateConfigDir
Wether or not the configuration directory should automatically be created if it does not exist.
SysConfigManage_baseDir
This is the base directory to use.
SysConfigManage_selectionMethod
This is the election method to use.
If not specified, the default will be used.
EXIT CODES
Any error codes not specified below are Sys::Config::Manage error codes.
253
Failed to copy one or more files to the configuration directory.
Check std err for any error output from Sys::Config::Manage.
254
Something script specific.
AUTHOR
Copyright (c) 2011, Zame C. Bowers-Hadley <vvelox@vvelox.net>
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.
README
scm-up - This copies files from the file system up to the configuration directory.