confinst
NAME
confinst - script for Communiware conffiles install
SYNOPSIS
confinst [-o user] [-g group] [-m mode] [-x] fromfile tofile
DESCRIPTION
This script is similar usual 'install' program, but makes some specials if destination file aready exists. -o, -g and -m options have the same meaning as in 'install'. If -x option is given then 'fromfile' must be an XML-config, such as cmw.conf. It is stripped from makeonly options. Version check between old and new XML configs is also made.
If 'tofile' already exists then script asks about what to do - rename old and install new, install new with .new suffix, see difference between files or exit install. If -x option is given and existing config file has version less than required, then 'install with .new suffix' option supressed.
If 'tofile' is a directory name then real destination file name is composed from this directory and 'fromfile' basename.