Hi,

The repositories and the destination repositories are all running on
windows.
Im not really an expert on batch files/shell script development...That's
why Im asking for your help :(
I just followed what I was told to do here but I don't want to mess things
up.


Thanks,


Honey

On Wed, Aug 1, 2012 at 2:08 PM, David Chapman <dcchap...@acm.org> wrote:

> On 7/31/2012 10:28 PM, Honeylyn O. Fukuoka wrote:
>
>> Hi,
>> I created a .bat file with the following scripts but still didn't work:
>> 1. REPOS="$1"
>> REV="$2"
>> USER="$3"
>> PROPNAME="$4"
>> ACTION="$5"
>> if [ "$USER" = "svnsync" ]; then exit 0; fi
>> echo "Only the svnsync user can change revprops" >&2
>> exit 1
>> exit 0
>>
>> 2. REPOS="$1"
>> REV="$2"
>> USER="$3"
>> PROPNAME="$4"
>> ACTION="$5"
>>
>> if [ "$USER" = "svnsync" ]; then exit 0; fi
>> echo "Only the svnsync user can change revprops" >&2
>> exit0
>> 3. exit 0
>> Did I do something wrong?
>> Thanks,
>> Honey
>>
>>
> The first two scripts are for Unix/Linux; they are /bin/sh or /bin/bash
> scripts.  They will not work on a Windows machine.
>
> The third should have worked on any type of machine, though if the
> destination repository is on Unix/Linux you will need to make the file
> executable and should change its ownership to match that of the other
> sample scripts in the hooks directory.  For example, on my Linux-hosted
> repository, all scripts are owned by user apache, group apache.
>
> What platform is the destination repository (i.e. the backup) on? Is it
> Windows or Unix/Linux?  You haven't told us anything about the machines you
> are running on; you mentioned ".bat files" but then tried scripts meant for
> Unix/Linux.
>
> Do NOT run any experiments with complicated scripts until you get a simple
> script running; if you can't get a single line "exit 0" script to work then
> none of the complicated scripts will work.  In particular, if you are not
> an expert batch file/shell script developer, you shouldn't try anything
> fancy.  You can really mess things up.
>
>
> --
>     David Chapman      dcchap...@acm.org
>     Chapman Consulting -- San Jose, CA
>     Software Development Done Right.
>     www.chapman-consulting-sj.com
>
>


-- 
*HONEYLYN O. FUKUOKA*
System Administrator
Menue Philippines, Inc.
*
*

Reply via email to