Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,25 @@ then

mkdir -p ${BASE}
echo Creating SVN Mirror...
svnadmin create ${LOCAL_SVN} ${REMOTE_SVN}
mkdir ${LOCAL_SVN}/hooks
svnadmin create ${LOCAL_SVN}
mkdir -p ${LOCAL_SVN}/hooks
echo '#!/bin/sh' > ${LOCAL_SVN}/hooks/pre-revprop-change
chmod 755 ${LOCAL_SVN}/hooks/pre-revprop-change

echo Syncing SVN mirror for the first time, this will take a while...
svnsync sync file://${LOCAL_SVN}
svnadmin init file://${LOCAL_SVN} ${REMOTE_SVN}

echo Cloning from git...
git clone ${REMOTE_GIT} ${LOCAL_GIT}

echo Setting up additional mirrors
pushd .
cd ${LOCAL_GIT}
for i in ${!EXTRA_GIT_MIRRORS[@]}
do
git remote add ${i} ${EXTRA_GIT_MIRRORS[$i]}
done
cd ..
popd

echo Adding SVN config
cp authors.txt ${BASE}/
Expand Down