]> err.no Git - dotfiles/commitdiff
exclude CVS dirs
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 16 Oct 2002 00:30:32 +0000 (00:30 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Wed, 16 Oct 2002 00:30:32 +0000 (00:30 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@75 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

link-dotfiles

index 89ddbdfcb75490d2fedba1ddf5565b4ed0c80169..f75ad52ccde120026f5f8d1652ae42ca44fba03b 100755 (executable)
@@ -21,13 +21,15 @@ fi
 linkdir () {
     for file in $1/*; do
         file=`basename $file`
-        if test -d  "$1/$file"; then
+        if test "$file" = "CVS"; then
+            continue
+        elif test -d  "$1/$file"; then
             if ! test -d "$2/$DOT$file"; then
                 mkdir $2/$DOT$file
             fi
             local OLDDOT=$DOT
             local DOT=
-            linkdir $1/$file $2/$DOT$file
+            linkdir $1/$file $2/$OLDDOT$file
             DOT=$OLDDOT
             continue
         elif ! test -f "$1/$file"; then