Ignore the .svn directories in the config directories.

This commit is contained in:
nekral-guest
2009-03-16 23:21:15 +00:00
parent b7bf03b161
commit 097d6864f7
+3 -3
View File
@@ -7,7 +7,7 @@ set -e
save_config ()
{
[ ! -d tmp ] && mkdir tmp
find config -depth -type f | sed -e 's/config\///' |
find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' |
while read file
do
mkdir -p "tmp/$(dirname "$file")"
@@ -18,7 +18,7 @@ save_config ()
# Copy the config files from config to the system
change_config ()
{
find config -depth -type f | sed -e 's/config\///' |
find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' |
while read file
do
cp -f "config/$file" "/$file"
@@ -29,7 +29,7 @@ change_config ()
# The config files must be saved before with save_config ().
restore_config ()
{
find config -depth -type f | sed -e 's/config\///' |
find config -depth -path "*/.svn/*" -prune -o -type f -print | sed -e 's/config\///' |
while read file
do
[ -f "tmp/$file" ] && \