info-cvs
[Top][All Lists]
Advanced

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

Re: Problem uploading files in cvs repository to ftp server


From: Arno Schuring
Subject: Re: Problem uploading files in cvs repository to ftp server
Date: Mon, 6 Sep 2004 21:32:29 +0200

Unfortunately, I never used loginfo or commitinfo triggers myself, so I
can't really provide you with a working example. You can do this without
modifying the perl script, provided you know your way around in a linux
shell.

> The perl script is from sourceforge
> (http://sourceforge.net/projects/ftpsync/). I don't know how to write a
> Perl script that checks out a local copy.
Me neither. I guess perl has a spawn()-like mechanism for this.

Instead of executing the perl script directly, execute a bash script that
does the following:
- cvs co -d /tmp/myproject project_name
- run ftpsync.pl from /tmp/myproject
- (rm /tmp/myproject) if you prefer disk space to speed

> I use WinCVS to get a checkout out local copy on my windows PC. The CVS
> repository is on a linux server. You mentioned checkout a local copy; is
> the local copy at the linux server or at the windows PC?

Note that the above script runs on the server: it is a checked-out copy on
the server, so local in this case means "on the same machine where the
repository is".


HTH,
Arno

>
> Anand
>
> >
> > Can you modify the perl script to first checkout a local copy and then
> > upload the checked-out files?
> > The local (server) copy can afterwards be removed, of course.
> >
> > HTH,
> > Arno
> >
> >
> > ----- Original Message -----
> > From: "Anand Graves" <address@hidden>
> > To: <address@hidden>
> > Sent: Sunday, September 05, 2004 9:01 PM
> > Subject: Problem uploading files in cvs repository to ftp server
> >
> >
> >> I want to upload a file to a ftp server whenever a file is commited.
The
> >> file loginfo in the direcotry CVSROOT can make this possible.
> >>
> >> I added a line on the left a regular expression (for a certain
> >> directory)
> >> and on the right the command to be executed. The command is a perl
> >> script
> >> that uploads the file(s) to a ftp server.
> >>
> >> When I looked on the ftp server I noticed that I saw only files with ,v
> >> at
> >> the  end. These are all RCS files, but I only want to upload checked
out
> >> files (without the ,v).
> >>
> >> Does anyone know how to accomplish this?
> >>
> >> Thanks,
> >>
> >> Anand
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Info-cvs mailing list
> >> address@hidden
> >> http://lists.gnu.org/mailman/listinfo/info-cvs
> >>
> >
>
>




reply via email to

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