[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Hook scrip - post-commit

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-02-21 14:23:01 CET

On Mon, 2005-21-02 at 11:52 +0100, Enrico Straube wrote:
> yes that helped a little bit. Can I open a file for reading in the
> hook-script like this?
> ,----- [ ]
> | ...
> | $last_backup_file = "$backup_path/$sicher/last\_backed\_up";
> | $next_backup_file = "$backup_path/$sicher/hook-incremental-
> backup.dump";

As long as $backup_path and $sicher are defined in the perl script, I
don't see why not. Make sure it is a full path name starting from root.

One thing to do is write your errors to STDERR and then when your run
the script as a hook redirect STDERR to append to a file like so (for a
bash shell).

/usr/bin/perl /usr/local/bin/backup-since-rev.pl "$REPOS" "$REV" \


Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
08:14:48 up 4 days, 16:07, 2 users, load average: 0.19, 0.24, 0.15 

Received on Mon Feb 21 14:24:44 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.