-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag_all_vetmedstat.bat
More file actions
114 lines (96 loc) · 3.33 KB
/
tag_all_vetmedstat.bat
File metadata and controls
114 lines (96 loc) · 3.33 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
cls
cd %~dp0
@echo off
cls
ECHO Tagging all projects in the VetMedStat SVN Repository.
:inputSource
ECHO Which branch do you want to tag?
set source=
set /P source=Source Branch: %=%
if "%source%"=="" goto inputTag
:inputTag
ECHO What is the name of the tag you wish to create?
set tagName=
set /P tagName=Version Tag: %=%
if "%tagName%"=="" goto areYouSure
:areYouSure
ECHO Are you sure you want to tag the %source% line of code with the tag %tagName% (y/n)?
set sure=
set /p sure=
if not '%sure%'=='' set choice=%choice:~0,1%
if '%sure%'=='y' (
GOTO tagIt
)
if '%sure%'=='n' (
GOTO nope
)
ECHO "%sure%" is not valid please try again
ECHO.
GOTO areYouSure
:nope
ECHO Guess not.
PAUSE
EXIT
:tagIt
setlocal EnableDelayedExpansion
set "baseURL=http://subversion.idexx.com.local/subversion/VetMedStat"
set "tag=tags/%tagName%"
set "branch=branches/%source%"
set "CommonLibraries=%baseURL%/CommonLibraries"
set "DicomConverter=%baseURL%/DicomConverter"
set "DicomServer=%baseURL%/DicomServer"
set "VetMedStat_rc=%baseURL%/VetMedStat_rc"
set "VMS1=%baseURL%/VMS1"
set "VMSAdmin=%baseURL%/VMSAdmin"
set "VMSAdminVB=%baseURL%/VMSAdminVB"
set "VMSClient=%baseURL%/VMSClient"
set "VMSDatabase=%baseURL%/VMSDatabase"
set "VMSIntegrations=%baseURL%/VMSIntegrations"
set "VMSReports=%baseURL%/VMSReports"
set "VMSViewer=%baseURL%/VMSViewer"
set "VMSWebServices3=%baseURL%/VMSWebServices3"
ECHO DicomConverter
svn mkdir -m "" %DicomConverter%/%tag%
svn copy -m -rHEAD %DicomConverter%/%branch% %DicomConverter%/%tag%/DicomConverter
ECHO DicomServer
svn mkdir -m "" %DicomServer%/%tag%
svn copy -m -rHEAD %DicomServer%/Releases %DicomServer%/%tag%
svn copy -m -rHEAD %DicomServer%/%branch% %DicomServer%/%tag%/DicomServer
ECHO VetMedStat_rc
svn mkdir -m "" %VetMedStat_rc%/%tag%
svn copy -m -rHEAD %VetMedStat_rc%/Releases %VetMedStat_rc%/%tag%
svn copy -m -rHEAD %VetMedStat_rc%/%branch% %VetMedStat_rc%/%tag%/VetMedStat_rc
ECHO VMS1
svn mkdir -m "" %VMS1%/%tag%
svn copy -m -rHEAD %VMS1%/Releases %VMS1%/%tag%
svn copy -m -rHEAD %VMS1%/%branch% %VMS1%/%tag%/VMS1
ECHO VMSAdmin
svn mkdir -m "" %VMSAdmin%/%tag%
svn copy -m -rHEAD %VMSAdmin%/Releases %VMSAdmin%/%tag%
svn copy -m -rHEAD %VMSAdmin%/%branch% %VMSAdmin%/%tag%/VMSAdmin
ECHO VMSAdminVB
svn mkdir -m "" %VMSAdminVB%/%tag%
svn copy -m -rHEAD %VMSAdminVB%/Releases %VMSAdminVB%/%tag%
svn copy -m -rHEAD %VMSAdminVB%/%branch% %VMSAdminVB%/%tag%/VMSAdminVB
ECHO VMSClient
svn mkdir -m "" %VMSClient%/%tag%
svn copy -m -rHEAD %VMSClient%/Releases %VMSClient%/%tag%
svn copy -m -rHEAD %VMSClient%/%branch% %VMSClient%/%tag%/VMSClient
ECHO VMSDatabase
svn copy -m -rHEAD %VMSDatabase%/%branch% %VMSDatabase%/%tag%
ECHO VMSIntegrations
svn mkdir -m "" %VMSIntegrations%/%tag%
svn copy -m -rHEAD %VMSIntegrations%/Releases %VMSIntegrations%/%tag%
svn copy -m -rHEAD %VMSIntegrations%/%branch% %VMSIntegrations%/%tag%/VMSIntegrations
ECHO VMSReports
svn mkdir -m "" %VMSReports%/%tag%
svn copy -m -rHEAD %VMSReports%/Releases %VMSReports%/%tag%
svn copy -m -rHEAD %VMSReports%/%branch% %VMSReports%/%tag%/VMSReports
ECHO VMSViewer
svn mkdir -m "" %VMSViewer%/%tag%
svn copy -m -rHEAD %VMSViewer%/%branch% %VMSViewer%/%tag%/VMSViewer
ECHO VMSWebServices3
svn mkdir -m "" %VMSWebServices3%/%tag%
svn copy -m -rHEAD %VMSWebServices3%/Releases %VMSWebServices3%/%tag%
svn copy -m -rHEAD %VMSWebServices3%/%branch% %VMSWebServices3%/%tag%/VMSWebServices3
pause