-
Notifications
You must be signed in to change notification settings - Fork 0
/
uct-git-svn
executable file
·57 lines (39 loc) · 887 Bytes
/
uct-git-svn
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
SVNSRC="http://source.cet.uct.ac.za/svn/sakai"
echo "$SVNSRC"
MYPATH=`pwd`
USER=$MYPATH/users.txt
CONFIG=$MYPATH/config
UCTREPOS=$MYPATH/repos
UCTSVN=$MYPATH/svn
rm -rf $UCTREPOS
mkdir $UCTREPOS
cd $UCTREPOS
echo "repros: $UCTREPOS "
echo "svn: $UCTSVN"
echo "pwd: `pwd`"
for i in `tr ' ' '_' <$UCTSVN`
#for i in `tr ' ' '_' </home/dhorwitz/tmp/uct/svn`
do
echo $i
SAKAI=$SVNSRC/$i
echo "srv: $SAKAI"
git init $i
cd $i
#git
#git svn clone $SAKAI --authors-file=$USER --no-metadata -s $i
#https://github.com/nirvdrum/svn2git#readme
svn2git --authors $USER $SAKAI
echo
echo "git: $i"
#.git*
echo $CONFIG
cp $CONFIG/.gitattributes .
cp $CONFIG/.gitignore .
cp $CONFIG/LICENSE .
git add .gitattributes .gitignore LICENSE
git commit -m "NOIJIRA .gitattributes .gitignore LICENSE"
cd ..
echo
echo
done