[project @ 2005-06-02 16:52:58 by sof]
authorsof <unknown>
Thu, 2 Jun 2005 16:52:58 +0000 (16:52 +0000)
committersof <unknown>
Thu, 2 Jun 2005 16:52:58 +0000 (16:52 +0000)
add .svn/ to list of ignorable dirs

glafp-utils/lndir/lndir.c

index 6728638..e435b2b 100644 (file)
@@ -243,6 +243,8 @@ int rel;                    /* if true, prepend "../" to fn before using */
                    continue;
                if (!strcmp (dp->d_name, "CVS"))
                    continue;
+               if (!strcmp (dp->d_name, ".svn"))
+                   continue;
                if (!strcmp (dp->d_name, "CVS.adm"))
                    continue;
                ocurdir = rcurdir;
@@ -334,18 +336,17 @@ char **av;
 #endif
 
     while (++av, --ac) {
-       if (strcmp(*av, "-silent") == 0)
-           silent = 1;
-       if (strcmp(*av, "-f") == 0)
-           force = 1;
-       else if (strcmp(*av, "-ignorelinks") == 0)
-           ignore_links = 1;
-       else if (strcmp(*av, "--") == 0) {
-           ++av, --ac;
-           break;
-       }
-       else
-           break;
+      if (strcmp(*av, "-silent") == 0)
+         silent = 1;
+      else if (strcmp(*av, "-f") == 0)
+         force = 1;
+      else if (strcmp(*av, "-ignorelinks") == 0)
+         ignore_links = 1;
+      else if (strcmp(*av, "--") == 0) {
+         ++av, --ac;
+         break;
+      } else
+         break;
     }
 
     if (ac < 1 || ac > 2)