Sponsored Content
Special Forums UNIX and Linux Applications CVS recursive diff -- how to exclude specific directories? Post 302301158 by Yogesh Sawant on Thursday 26th of March 2009 04:25:13 AM
Old 03-26-2009
check if the -f option is helpful for you

from the manuals:
Code:
   -f

     When you specify a particular date or tag to cvs commands, they normally ignore files that do not contain the tag
     (or did not exist prior to the date) that you specified.  Use the -f option if you want files retrieved even when
     there is no match for the tag or date.  (The most recent revision of the file will be used).

     Note that even with -f, a tag that you specify must exist (that is, in some file, not necessary in  every  file).
     This is so that cvs will continue to give an error if you mistype a tag name.

     -f is available with these commands: annotate, checkout, export, rdiff, rtag, and update.

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

GNUTAR exclude directories

Hi, Can anyone help me with the following: I want to make a backup from my (AIX) system. But I don't want to backup a couple of temp-directories. I tried it with the X-option, but that didn't work. I hope that someone can help me. Thanks in advance. Corine (6 Replies)
Discussion started by: TheBlueLady
6 Replies

2. UNIX for Dummies Questions & Answers

grep recursive directories

I am trying to locate a file or files with specific data in them. Problem is the file(s) could reside in any one of many directories. My question is. Is there a way of recursively greping directories for the file(s) with the data I am looking for. I have tried - 1. $HOME> grep 47518 | ls... (8 Replies)
Discussion started by: jagannatha
8 Replies

3. Shell Programming and Scripting

cvs diff then commit

I would like to run a cvs diff to check which files have been changed and then cvs commit these changed files. Does anyone have a shell script which will automate this process? (1 Reply)
Discussion started by: alangibson
1 Replies

4. UNIX for Advanced & Expert Users

recursive chmod that only affects directories?

The man page for chmod doesn't list a way to recursively change permissions on directories only, without affecting the files themselves. Let's say that I wanted to change the permissions on the current directory and all subdirectories. I know I can write a bash script that would do this using... (1 Reply)
Discussion started by: retrovertigo
1 Replies

5. Shell Programming and Scripting

Find but exclude directories

Hello, I have a line in my script to find the files changed in the last 24 hours. It is as below: find /home/hary -type f -mtime -1 I now want to exclude a directory named "/home/hary/temp/cache" from the above find command. How do I add it to my script? Any help is appreciated. ... (9 Replies)
Discussion started by: tadi18
9 Replies

6. AIX

recursive archive directories and subdirectories

Hi everyone, Maybe this is simple question for many of you, but I get confused.:confused: How to archive a parent directory which contains some subdirectories and some files? I have searched this forum, there are some commands like tar,etc, I tried but can not be implemented in my system.... (6 Replies)
Discussion started by: wilsonSurya
6 Replies

7. Shell Programming and Scripting

How to exclude the empty directories

Hi., I have a script, in which I am processing a files present in the directory types. ls -lrt | grep ^d | grep Dir_type | awk -f '{print $9}' |\ while read dir_name; do #operations done where Dir_type is the pattern in which directories get created. How to filter out empty... (2 Replies)
Discussion started by: IND123
2 Replies

8. Shell Programming and Scripting

Recursive looping through files and directories

hi; i need a script which will go to all directories and subdirectories and print the filenames as follow; here i m printing only files listing in current directory reason i m doing this is coz i want to perform some operations according to filename achieved so cant use find command;... (4 Replies)
Discussion started by: ajaypadvi
4 Replies

9. Shell Programming and Scripting

Git diff exclude swapped lines

Hi, I am doing aws security group auditing every day to find the difference. I am using git to find the difference. But some times some security group rules order is changing up and down(swapping lines). So 'git diff' command gives this as a difference which i dont want(i need only new lines... (2 Replies)
Discussion started by: jobycxa
2 Replies

10. UNIX for Beginners Questions & Answers

Chattr recursive exclude directory

Attempting to recursive chattr directories while excluding a directory, however the command which works with chown does not seem to with chattr find /mysite/public_html ! -wholename '/mysite/public_html/images' -type d -exec chattr -R +i {} \; find /mysite/public_html -not -path "*/images*"... (2 Replies)
Discussion started by: carnagel
2 Replies
CVS-AUTORELEASEDEB.CONF(5)				User Contributed Perl Documentation				CVS-AUTORELEASEDEB.CONF(5)

NAME
cvs-autoreleasedeb.conf - Configuration for cvs-autoreleasedeb SYNOPSIS
/etc/cvs-autoreleasedeb.conf $HOME/.cvs-autoreleasedeb/conf DESCRIPTION
The cvs-autoreleasedeb configuration file is writed in XML, because XML is easy to work with multiple-level data, but it's already in the TODO list to use a better format. As a good XML file, this config file has the following header. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE cvs-autoreleasedeb [ <!ELEMENT sources (server)+> <!ELEMENT server (package)+> <!ATTLIST server name CDATA #REQUIRED options CDATA #REQUIRED> <!ELEMENT package (option)+> <!ATTLIST package name CDATA #REQUIRED cvsroot CDATA #REQUIRED prefix CDATA #REQUIRED tag CDATA #REQUIRED> <!ELEMENT option EMPTY> <!ATTLIST option name CDATA #REQUIRED value CDATA #REQUIRED> ]> Which, in fact, tells the structure of the XML file. But in the case you don't know XML, this header tells that, in the sources, you have servers, which have packages, which have options. A server has the "name" and the "option" properies, a package has "name", "cvsroot", "prefix" and "tag" properties and an option has "name" and "value" property. Before explaining how the options affects the script, you must know that in the current version, all the tags and properties MUST be lower- case (it's already on the TODO list). CONFIGURATION SECTIONS
server This is the master section, tells what server to dupload. Actually, the "name" property of the server is used as the "--to" parameter to dupload. Packages are declared inside servers. Also, the "options" property tells aditional parameters to cvs-buildpackage for every pack- age in this server. package The package itself, the "name" property is used as the module name for cvs checkout. The "cvsroot" property is passed to cvs as the CVSROOT and the "prefix" is placed before the module name, used if your package is inside some other directory than the cvs root. Optionally, you can inform a tag to checkout the sources from. option Specify an option to a package. The following options are accepted and increment the following text to the cvs-buildpackage command: binary-source = 1: "-b" EXAMPLE
In the case you still didn't understand the config file, follows an example: <server name="intern"> <package name="cvs-autoreleasedeb" cvsroot=":pserver:ruoso@ozonio:/var/cvs" prefix=""> </package> <package name="someotherpackage" cvsroot=":pserver:ruoso@ozonio:/var/cvs" prefix=""> <option name="binary-source" value="1"/> </package> </server> SEE ALSO
cvs-buildpackage(1), cvs(1), cvs-autoreleasedeb(1), dupload(1) AUTHOR
This manual page was written by Daniel Ruoso <daniel@ruoso.com>, for the Debian GNU/Linux system. perl v5.8.7 2006-08-04 CVS-AUTORELEASEDEB.CONF(5)
All times are GMT -4. The time now is 07:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy