info-cvs
[Top][All Lists]
Advanced

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

Re: vss2cvs.pl problem (Was: Cvs problem)


From: Noel Yap
Subject: Re: vss2cvs.pl problem (Was: Cvs problem)
Date: Thu, 11 Jul 2002 06:57:13 -0700 (PDT)

--- Jim McIntosh <address@hidden> wrote:
> I'm having a problem with vss2cvs.pl the problem is
> that when the
> script tries to concatenate $currdir with $dirline
> it seems to copy one over 
> the other rather than next to each other.
> i.e
> $currfile should be cvsrepository/hi.txt
> however it ends up being hi.txtository
> 
> Heres that part of the code:
> 
>              $currfile = "$currdir$dirline";
>       open(FILETYPE,"ss Filetype \"$currfile\"
> $ssuserpass |");
>               $type = lc(<FILETYPE>);
>               close(FILETYPE);
> 
> Does anyone know how to fix this. Please help as I'm
> only a student in 2nd 
> year at University and have never really used perl
> or cvs.

It looks like the initial (ie on the right-hand-side
of the assignment) value of $currdir has a '\r' in it.

My guess is that you're on a Windows machine.  Is this
correct?

Are you using Cygwin?  If so, are you using Cygwin's
perl and are you using a binary-mounted directory?

If all you want to do is get this script working, you
can do a chop($currdir) before the assignment.  I
would think, though, that you'll run into other
similar problems with the script and even line-ending
problems later on with CVS if you are, in fact,
running on a text-mounted directory.

Noel

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



reply via email to

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