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

RE: Enhancement suggestion for svnadmin create and default hook f iles

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2004-06-04 15:09:40 CEST

Hi Martin,

> svnadmin should allow .tmpl hook files placed in new repos to
> come from real files instead of being hard-wired in repos.c
I don't think that's necessary

how about:
--SNIP--
#/bin/sh
#
# mkrepos.sh
# small Shell Script to create a repository
#

SVNADMIN=/usr/local/bin/svnadmin
SVN=/usr/local/bin/svn
BASE=/usr/local/svn/repository/

REPOS=${1}
if [ x$REPOS = x ] ; then
echo "usage: $0 REPOS_PATH"
exit
fi

mkdir ${BASE}$1
${SVNADMIN} create ${BASE}$1
cp conf/hooks/* ${BASE}$1/hooks
chown -R svn:svn ${BASE}$1
${SVN} import conf/template file://${BASE}$1 -m "created repository"
--SNIP--

I've got my hook scripts in conf/hooks and my directory template in
conf/template

Cheers
-Lübbe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 4 15:11:01 2004

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.