diff --git a/tconfigfiles b/tconfigfiles index e83e34d..5a0a9bd 100755 --- a/tconfigfiles +++ b/tconfigfiles @@ -2,16 +2,14 @@ # tconfigfiles - Manage Configuration Files # Copyright (c) 2007-2013 TundraWare Inc., Des Plaines, IL USA # All Rights Reserved -# $Id: tconfigfiles,v 1.113 2013/02/13 03:11:50 tundra Exp $ +# $Id: tconfigfiles,v 1.114 2013/02/13 03:37:25 tundra Exp $ ARCHIVES=archives CFTREE=tree -SBASE="\/root\/sysgen\/$CFTREE" -BASE=`echo $SBASE | sed s/\\\\\\\\//g` +BASE="$HOME/sysgen/$CFTREE" CMD=`basename $0` - case $CMD in @@ -41,12 +39,13 @@ "cfinstall") # Install configuration files from tree for f in $* do - targetdir=`pwd -P | sed s/$SBASE//` + targetdir=`pwd -P | sed s?$BASE??` cp -pvR $f $targetdir done ;; - tconfigfiles) + + "tconfigfiles") INSTALLDIR=`dirname $0` ln -s $0 $INSTALLDIR/cfarchive ln -s $0 $INSTALLDIR/cfbku