Ticket #22770: reproduce.sh

File reproduce.sh, 345 bytes (added by francis@…, 14 years ago)
Line 
1#!/bin/sh
2if [ $# -eq 0 ]; then
3    DIR=svntest
4else
5    DIR="$1"
6fi
7
8echo $DIR
9mkdir -p "$DIR"
10cd "$DIR"
11svnadmin create repo || exit $?
12svn co "file:///`pwd`/repo" checkout || exit $?
13cd checkout || exit $?
14echo hello > README.txt || exit $?
15svn add README.txt || exit $?
16# Next line crashes
17svn ci -m "Added README.txt" README.txt || exit $?