| | #!/bin/sh |
---|
| | # tconfigfiles - Manage Configuration Files |
---|
| | # Copyright (c) 2007 TundraWare Inc., Des Plaines, IL USA |
---|
| | # All Rights Reserved |
---|
| | # $Id: tconfigfiles,v 1.102 2007/08/04 06:43:30 root Exp $ |
---|
| | # $Id: tconfigfiles,v 1.103 2007/08/04 06:58:59 root Exp $ |
---|
| | |
---|
| | |
---|
| | SBASE="\/root\/sysgen\/configtree" |
---|
| | BASE=`echo $SBASE | sed s/\\\\\\\\//g` |
---|
| | CMD=`basename $0` |
---|
| | |
---|
| | case $CMD |
---|
| | in |
---|
| | |
---|
| | "cfinstall") # Install configuration files from tree |
---|
| | for f in $* |
---|
| | do |
---|
| | targetdir=`pwd | sed s/$SBASE//` |
---|
| | cp -pvR $f $targetdir |
---|
| | done |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | "cfbku") # Backup configuration files to tree |
---|
| | for f in $* |
---|
| | do |
---|
| |
---|
| | done |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | "cfinstall") # Install configuration files from tree |
---|
| | for f in $* |
---|
| | do |
---|
| | targetdir=`pwd | sed s/$SBASE//` |
---|
| | cp -pvR $f $targetdir |
---|
| | done |
---|
| | ;; |
---|
| | |
---|
| | |
---|
| | *) |
---|
| | echo "Unknown Command ===> $CMD" |
---|
| | exit 1 |
---|
| | ;; |
---|
| | |