Page MenuHomeSoftware Heritage

init-svn-repository.sh
No OneTemporary

init-svn-repository.sh

#!/usr/bin/env bash
# script to ease the initialization of an svn repository
SVN_DIR=${1-"/home/storage/svn/example"}
REMOTE_SVN=${2-"http://example.googlecode.com/svn/"}
[ -d $SVN_DIR ] && echo "$SVN_DIR already present. Do 'rm -rf $SVN_DIR' and relaunch this script if you really want to start from scratch." && exit 1
set -x
svnadmin create $SVN_DIR
cd $SVN_DIR
echo -e '#!/bin/sh\n' > hooks/pre-revprop-change
chmod +x hooks/pre-revprop-change
# Fill in some repository
svnsync init file://$SVN_DIR $REMOTE_SVN
svnsync sync file://$SVN_DIR

File Metadata

Mime Type
text/x-shellscript
Expires
Jun 4 2025, 7:43 PM (10 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3354889

Event Timeline