Rob Brandt wrote:
> I was hoping to avoid programming anything more than shell or perl. I
> don't do
> C. THanks for clearing up the protocol issue, I'll stick with http.
> I had noted the 3rd slash - it's actually the start of the path.
> Quoting "Gale, David" <David.Gale@Hypertherm.com>:
>> Rob Brandt wrote:
>>> svn --newbie
>>> I have svn up and running on my debian server, using tortoise-svn
>>> on XP workstations.
>>> I would like to set up something that would "publish" HEAD to a web
>>> root directory on each commit. This is a development server, not
>>> "live". I've been reading the docs and it seems like it should be
>>> straightforward, but I just starting looking at the command line
>>> arguments and I can't think through how this is going to work.
>>> Specifically, permissions. My projects need to be password
>>> protected, and the "published" files need to have the right
>>> user/group permissions on the server.
>> Have you checked the FAQ?
>> Use that as a starting point. Changing permissions, if need be,
>> should be a straightforward modification of the code.
The code in the FAQ is simply a way to get around the UNIX limitation on
setting the sticky bit. If you're accessing the repository through
apache (which you are, given the http:// protocol), and your web root
directory is actually a working copy owned by apache, you shouldn't have
to worry about this--just have the post-commit hook update the working
copy directly. You only need to set the sticky bit if you need
different permissions than you usually have.
And, if you really do need to use a sticky-bit binary, you can basically
treat the given code as a slightly munged shell script:
int main(int argc, const char *argv)
system("/usr/local/bin/svn update /home/joe/public_html/");
system("/usr/bin/chown -R someone:else /home/joe/public_html/");
system("/usr/bin/echo 'Hello, World!'");
etc. Compiling is simple, since the code is simple--you don't need to
worry about libraries, etc. Just put whatever you want into a system()
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Tue Nov 8 21:10:00 2005