From users-return-33-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Tue Dec 15 00:34:10 2009 Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 89910 invoked from network); 15 Dec 2009 00:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 00:34:10 -0000 Received: (qmail 19478 invoked by uid 500); 15 Dec 2009 00:34:10 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 19442 invoked by uid 500); 15 Dec 2009 00:34:09 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 19434 invoked by uid 99); 15 Dec 2009 00:34:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 00:34:09 +0000 X-ASF-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,HTML_FONT_FACE_BAD,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brendan@resolutionim.com designates 216.46.129.163 as permitted sender) Received: from [216.46.129.163] (HELO fish2.hurontel.on.ca) (216.46.129.163) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 00:34:07 +0000 Received: from mail.resolutionim.com (170.das.ip.resolutionim.com [216.46.135.170]) by fish2.hurontel.on.ca (Spam & Virus Firewall) with ESMTP id 6B768C1A9C5 for ; Mon, 14 Dec 2009 19:33:42 -0500 (EST) Received: from mail.resolutionim.com (170.das.ip.resolutionim.com [216.46.135.170]) by fish2.hurontel.on.ca with ESMTP id QGCZX7RJvNgjYCAu for ; Mon, 14 Dec 2009 19:33:42 -0500 (EST) Received: from ash.resolutionim.com (ash.resolutionim.com [192.168.1.176]) by mail.resolutionim.com (Postfix) with ESMTP id 8C5D93D00710 for ; Mon, 14 Dec 2009 19:16:02 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by ash.resolutionim.com (Postfix) with ESMTP id D92B41A0EAC for ; Mon, 14 Dec 2009 19:33:41 -0500 (EST) X-Virus-Scanned: amavisd-new at resolutionim.com Received: from ash.resolutionim.com ([127.0.0.1]) by localhost (ash.resolutionim.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HXjB7fFO8fSm for ; Mon, 14 Dec 2009 19:33:41 -0500 (EST) Received: from [192.168.1.231] (unknown [192.168.1.231]) by ash.resolutionim.com (Postfix) with ESMTPA id 3F44C1A0E9E for ; Mon, 14 Dec 2009 19:33:41 -0500 (EST) From: Brendan Farr-Gaynor Content-Type: multipart/alternative; boundary=Apple-Mail-2--937820870 Subject: Hooks Date: Mon, 14 Dec 2009 19:33:40 -0500 Message-Id: <06D15462-BB56-4FE6-9BC6-3CD2D883F07F@resolutionim.com> To: users@subversion.apache.org Mime-Version: 1.0 (Apple Message framework v1075.2) X-Mailer: Apple Mail (2.1075.2) --Apple-Mail-2--937820870 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Hi All, SVN newbie here. I'm wondering if there is anyone out there running running Subversion on OS X Server (10.6)? I'm trying to use Subversion as a team web development solution and need to have committed files moved to our central apache web root for web browsing. I see this is a popular thing that people are looking for, but I'm having trouble getting my hook scripts to run and I'm sure it's got to be a permissions issue or something. Based on some tutorials I've found in different places I've done the following: I created a C program in XCode similar to this (update_svn): #include #include #include int main(void) { execl("/usr/bin/svn", "svn", "update", "--username", "YOURSVNUSER", "--password", "YOURSVNPASSWD", "/Library/WebServer/", (const char *) NULL); return(EXIT_FAILURE); } Created a post-commit script in my /hooks directory that has this: #/bin/sh /Library/WebServer/update_svn Then modified the permissions as such: $ chown www /Library/WebServer/update_svn $ chmod +s /Library/WebServer/update_svn $ chmod +s /myrepo/project/hooks/post-commit However, it doesn't seem to run (files aren't moved) and I'm perplexed as to how to debug this, is there a log file somewhere? I'm not seeing anything in /var/log/ for svn? Does the above look right? Am I missing something? Has anyone out there had to do this on an OS X server that could provide some guidance? I tried running the file from the shell as root (update_svn binary) and it reports that it 'Skipped: /Library/WebServer/' what does that mean? Any help would be greatly appreciated! -- Brendan Farr-Gaynor --Apple-Mail-2--937820870 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = All,

SVN newbie here. I'm wondering if there is = anyone out there running running Subversion on OS X Server (10.6)? I'm = trying to use Subversion as a team web development solution and need to = have committed files moved to our central apache web root for web = browsing. I see this is a popular thing that people are looking for, but = I'm having trouble getting my hook scripts to run and I'm sure it's got = to be a permissions issue or something.

Based on some tutorials I've found in different places I've = done the following:

I created a C program in XCode = similar to this (update_svn):

#include = <stddef.h>
#include <stdlib.h>
#include = <unistd.h>
int main(void)
{
execl("/usr/bin/svn", "svn", = "update", "--username", 
"YOURSVNUSER", "--password", = "YOURSVNPASSWD",
"/Library/WebServer/", (const char *) = NULL);
return(EXIT_FAILURE);
}

Created a post-commit script = in my /hooks directory that has = this:

#/bin/sh
/Library/WebServer/update_svn

Then = modified the permissions as such:

$ chown www = /Library/WebServer/update_svn
$ chmod +s = /Library/WebServer/update_svn

$ chmod +s = /myrepo/project/hooks/post-commit

However, it doesn't seem to run = (files aren't moved) and I'm perplexed as to how to debug this, is there = a log file somewhere? I'm not seeing anything in /var/log/ for = svn?

Does the above look right? Am I missing something? Has = anyone out there had to do this on an OS X server that could provide = some guidance?

I tried running the file from the shell as root = (update_svn binary) and it reports that it 'Skipped: = /Library/WebServer/' what does that mean?

Any help would be = greatly appreciated! 

--
Brendan = Farr-Gaynor


= --Apple-Mail-2--937820870--