Displaying 5 results from an estimated 5 matches for "add_exclude_list".
2001 Sep 30
0
Exclude sets generated with -C
...har *p)
+static void add_exclude_line_to_list(char *p,
+ struct exclude_struct ***list)
{
char *tok;
if (!p || !*p) return;
p = strdup(p);
if (!p) out_of_memory("add_exclude_line");
for (tok=get_exclude_tok(p); tok; tok=get_exclude_tok(NULL))
- add_exclude(tok, 0);
+ add_exclude_list(tok, list, 0);
free(p);
+}
+
+void add_exclude_line(char *p)
+{
+ add_exclude_line_to_list(p, &exclude_list);
}
void add_include_line(char *p)
@@ -342,6 +364,35 @@
free(p);
}
+/* Include all entries from fname, which is a CVS/Entries file, into list */
+void add_cvs_entries(char *f...
2002 Nov 11
0
Regular Expression support
...n 1;
}
@@ -119,11 +200,11 @@
return 1;
}
}
+ }
return 0;
}
-
static void report_exclude_result(char const *name,
struct exclude_struct const *ent,
STRUCT_STAT const *st)
@@ -179,7 +260,7 @@
}
-void add_exclude_list(const char *pattern, struct exclude_struct ***list, int include)
+void add_exclude_list(const char *pattern, struct exclude_struct ***list, int include, int regexp)
{
int len=0;
if (list && *list)
@@ -198,7 +279,7 @@
*list = (struct exclude_struct **)Realloc(*list,sizeof(struct exc...
2002 Nov 04
4
making --exclude-from=- read from stdin
...e[0]=='-' && fname[1]=='\0'){
+ f= stdin;
+ }
+ else {
+ f= fopen(fname,"r");
+ }
if (!f) {
if (fatal) {
rsyserr(FERROR, errno,
@@ -243,7 +250,9 @@
add_exclude_list(line,&list,include);
}
}
- fclose(f);
+ if( ! (fname[0]=='-' && fname[1]=='\0' )) {
+ fclose(f);
+ }
return list;
}
2003 Feb 16
1
rsync-exclude.patch.
...error = 1;
+ rprintf(FINFO,
+ "cannot cvs-exclude in long-named directory %s\n",
+ fname);
+ }
+ }
+
for (di = readdir(d); di; di = readdir(d)) {
char *dname = d_name(di);
if (strcmp(dname, ".") == 0 || strcmp(dname, "..") == 0)
@@ -866,6 +911,10 @@
add_exclude_list("!", &local_exclude_list, 0);
}
+ if (recur_local_exclude_list) {
+ add_exclude_list("!", &recur_local_exclude_list, 0);
+ }
+
closedir(d);
}
@@ -887,6 +936,8 @@
if (show_filelist_p() && f != -1)
start_filelist_progress("building file list&quo...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
This is a patch to add an --rsync-exclude option to rsync-2.5.6cvs.
File names in .rsync- (or .rsync+) are excluded (or included) from the file
lists associated with the current directory and all of its subdirectories.
This has advantages over --cvs-exclude for backing up large file systems
since the .cvsignore files only apply to the current directory:
unless the .cvsignore restrictions apply