Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395694
init-svn-repository.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
552 B
Subscribers
None
init-svn-repository.sh
View Options
#!/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
Details
Attached
Mime Type
text/x-shellscript
Expires
Jun 4 2025, 7:43 PM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3354889
Attached To
rDLDSVN Subversion (SVN) loader
Event Timeline
Log In to Comment