info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recursive Comparision of files in working directory with repository


From: Mark E. Hamilton
Subject: Re: Recursive Comparision of files in working directory with repository
Date: Tue, 03 Jan 2006 09:32:58 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

ferozahmed wrote:
Hi All
any solution

Repo=/usr/local/repository/repository/nwpi
work=/home/trainee/work/nwpi

for i in `ls /usr/local/repository/repository/nwpi
{
for j in `ls /home/trainee/work/nwpi
{
if [ $i -eq $j ]  -->
then
cvs diff -u -r1.1 /home/trainee/work/nwpi
else
true
}
}

I'm not sure what language you are using, but most basename() commands allow you to pass a suffix to be removed, so something like

for i ...
{
i = `basename $i ,v
for j ...

might work.

--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666





reply via email to

[Prev in Thread] Current Thread [Next in Thread]