-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartsvn.sh
More file actions
executable file
·35 lines (23 loc) · 849 Bytes
/
Copy pathstartsvn.sh
File metadata and controls
executable file
·35 lines (23 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# The purpose of this script is to get you started with SVN quickly.
# It was written for SE 350, Personal Software Engineering
# It will:
# Create a folder
# Create an SVN repository within that folder
# Create a trunk and subfolder
# Checkout a working copy into that subfolder
# Make sure this script has execute permssions:
# $ chmod u+x ./startsvn.sh
#USAGE:
#./startsvn.sh youractivityname
#The subdirectory to create the repo and do our checkout from
: ${1?"Please include the name of your activity subdirectory. Usage: $0 YOURACTIVITYNAME"}
SUBDIR=$1
mkdir $SUBDIR
cd $SUBDIR
DIR=`pwd`
svnadmin create $DIR/repo
svn mkdir -m "Creating trunk" file://$DIR/repo/trunk
svn mkdir -m "Creating the folder for this project" file://$DIR/repo/trunk/$SUBDIR
svn co file://$DIR/repo/trunk/$SUBDIR activity
echo "Done!"