-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsvncommit
More file actions
executable file
·44 lines (38 loc) · 1.12 KB
/
svncommit
File metadata and controls
executable file
·44 lines (38 loc) · 1.12 KB
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
svnstat > svnstat.log
count=0
#show all modified files
while read line
do
file_info=`echo $line | awk -F 'M' '{print $2}'`
commit_file_name[$count]="$file_info"
count=`expr $count + 1`
echo "$count. $file_info"
done < svnstat.log
#Let user choose what kind of file they want to commit
index_for_commit_file=0
keep_going=1
while [ $keep_going -eq 1 ]
do
echo "Choose the option of file that you want to commit"
read number
commit_file[$index_for_commit_file]=`expr $number - 1`
echo "Still need to choose another files (y/n)?"
read option
if [ "$option" = "y" ]; then
index_for_commit_file=`expr $index_for_commit_file + 1`
#echo $index_for_commit_file
keep_going=1
else
#echo $index_for_commit_file
keep_going=0
fi
done
#Get the files information that you want to do svn commit
for i in $(seq 0 $index_for_commit_file)
do
#echo $i
#echo ${commit_file[$i]}
#echo ${commit_file_name[${commit_file[$i]}]}
svn_commit_file_name="$svn_commit_file_name ${commit_file_name[${commit_file[$i]}]}"
done
echo "svn commit " $svn_commit_file_name