Fixed directory determination to resolve symlinks.
1 parent 630cf02 commit fa9e2b0d00c9f3b51636cd128ef32967d7a6f29d
@tundra tundra authored on 12 Feb 2013
Showing 1 changed file
View
6
tconfigfiles
#!/bin/sh
# tconfigfiles - Manage Configuration Files
# Copyright (c) 2007-2013 TundraWare Inc., Des Plaines, IL USA
# All Rights Reserved
# $Id: tconfigfiles,v 1.111 2013/02/13 02:44:04 tundra Exp $
# $Id: tconfigfiles,v 1.112 2013/02/13 02:50:16 tundra Exp $
 
 
ARCHIVES=archives
CFTREE=tree
 
"cfbku") # Backup configuration files to tree
for f in $*
do
bkudir=$BASE`pwd`/
bkudir=$BASE`pwd -P`/
mkdir -p $bkudir
cp -pvR $f $bkudir
done
;;
 
"cfinstall") # Install configuration files from tree
for f in $*
do
targetdir=`pwd | sed s/$SBASE//`
targetdir=`pwd -P | sed s/$SBASE//`
cp -pvR $f $targetdir
done
;;