#!/bin/sh

# The next line is the only line you should need to adjust.
SVNDIR=/home/builder/usr/svn-165/bin

SVN=${SVNDIR}/svn
SVNSERVE=${SVNDIR}/svnserve
SVNADMIN=${SVNDIR}/svnadmin

URL=file:///`pwd`/repos

rm -rf repos wc import-me

${SVNADMIN} create repos

echo "### Making a Greek Tree for import..."
mkdir import-me
mkdir import-me/dir

(cd import-me; ${SVN} import -q -m "Initial import." ${URL})

${SVN} co ${URL} wc
echo "This is the file 'file.txt'." > wc/dir/file.txt
${SVN} add wc/dir/file.txt
${SVN} ci wc -m "file added"
${SVN} up -r1 wc
mkdir wc/dir/file.txt
${SVN} add wc/dir/file.txt
rm -rf wc/dir/file.txt

${SVN} up wc
