Check-in [4df99df5ae]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Bugfixes in publication batch script.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | src-1.3.2.0
Files: files | file ages | folders
SHA1: 4df99df5ae69894d27b88d64fbb731904d0cdb34
User & Date: tinus 2019-03-16 09:54:46
Context
2019-03-16
11:02
Copy files from 32-bits to 64-bits version in publish script. check-in: 9610d68156 user: tinus tags: trunk, src-1.3.2.0, release-src
09:54
Bugfixes in publication batch script. check-in: 4df99df5ae user: tinus tags: trunk, src-1.3.2.0
09:40
Merge and integrate win64 to trunk. check-in: 01f90f575c user: tinus tags: trunk
Changes

Changes to publish.cmd.

1
2
3
4
5
6
7
8
9
10
11
12
13
14

15
16
17
18
19
20
21
..
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
..
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!-- :: Begin batch script
@Echo off

:: set code page to UTF-8
chcp 65001

pushd %~dp0

:: call the WSF script to extract the current version number from the .dproj file
CScript //nologo "%f0?.wsf" > set_version.cmd
call set_version.cmd
del set_version.cmd

echo Preparing to build and release of version "%RELEASE_VERSION%".

echo Press Ctrl-C to abort publication;
pause

:: prepare to build the DLLs
call rsvars.bat

MSBuild /v:q /p:Config=Release;Platform=Win32 /t:build src\prj\PreviewHTML.dproj > out\PreviewHTML_Win32.txt
................................................................................
MSBuild /v:q /p:Config=Release;Platform=Win64 /t:build src\prj\PreviewHTML.dproj > out\PreviewHTML_Win64.txt
if errorlevel 1 echo Compilation errors, aborting... && start "" out\PreviewHTML_Win64.txt && goto TheEnd

fossil commit --tag src-%RELEASE_VERSION% --allow-empty

pushd %~dp0\out\Win32\Release
if not exist _FOSSIL_ echo goto NoPublicationRepo
move PreviewHTML.dll PreviewHTML32.dll
start /wait "Release notes" ReleaseNotes.txt
fossil commit --tag v%RELEASE_VERSION%-32 --tag v%RELEASE_VERSION%
popd

pushd %~dp0\out\Win64\Release
if not exist _FOSSIL_ goto NoPublicationRepo
move PreviewHTML.dll PreviewHTML64.dll
start /wait "Release notes" ReleaseNotes.txt
fossil commit --tag v%RELEASE_VERSION%-64 --tag v%RELEASE_VERSION%
popd

goto TheEnd

:NoPublicationRepo
................................................................................
exit /b


-- begin of wsf script -->
<package>
	<job>
		<script language="JScript">
			var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.6");
			xmlDoc.Load("src\\prj\\PreviewHTML.dproj");
			xmlDoc.SetSelectionNamespaces('xmlns:b="http://schemas.microsoft.com/developer/msbuild/2003"');
			var xmlKeys = xmlDoc.SelectSingleNode("/b:Project/b:PropertyGroup/b:VerInfo_Keys");
			if (xmlKeys) {
				var keys = xmlKeys.text;
				var match = /FileVersion=((\d+\.)+\d+)/.match(keys);
				if (match) {
					WScript.Echo("set RELEASE_VERSION=" + match[1]);
				}
			}
		</script>
	</job>
</package>




|

|


|
|
|

|
>







 







<






<







 







|
|
|
|


|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
..
25
26
27
28
29
30
31

32
33
34
35
36
37

38
39
40
41
42
43
44
..
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!-- :: Begin batch script
@Echo off

:: set code page to UTF-8
chcp 65001 >NUL

pushd "%~dp0"

:: call the WSF script to extract the current version number from the .dproj file
CScript //nologo "%~f0?.wsf" > set_version.bat
call set_version.bat
del set_version.bat

echo Preparing to build and release of version "%RELEASE_VERSION%" from branch:
fossil tag list current
echo Press Ctrl-C to abort publication;
pause

:: prepare to build the DLLs
call rsvars.bat

MSBuild /v:q /p:Config=Release;Platform=Win32 /t:build src\prj\PreviewHTML.dproj > out\PreviewHTML_Win32.txt
................................................................................
MSBuild /v:q /p:Config=Release;Platform=Win64 /t:build src\prj\PreviewHTML.dproj > out\PreviewHTML_Win64.txt
if errorlevel 1 echo Compilation errors, aborting... && start "" out\PreviewHTML_Win64.txt && goto TheEnd

fossil commit --tag src-%RELEASE_VERSION% --allow-empty

pushd %~dp0\out\Win32\Release
if not exist _FOSSIL_ echo goto NoPublicationRepo

start /wait "Release notes" ReleaseNotes.txt
fossil commit --tag v%RELEASE_VERSION%-32 --tag v%RELEASE_VERSION%
popd

pushd %~dp0\out\Win64\Release
if not exist _FOSSIL_ goto NoPublicationRepo

start /wait "Release notes" ReleaseNotes.txt
fossil commit --tag v%RELEASE_VERSION%-64 --tag v%RELEASE_VERSION%
popd

goto TheEnd

:NoPublicationRepo
................................................................................
exit /b


-- begin of wsf script -->
<package>
	<job>
		<script language="JScript">
			var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.6.0");
			xmlDoc.load("src\\prj\\PreviewHTML.dproj");
			xmlDoc.setProperty("SelectionNamespaces", "xmlns:b='http://schemas.microsoft.com/developer/msbuild/2003'");
			var xmlKeys = xmlDoc.selectSingleNode("/b:Project/b:PropertyGroup/b:VerInfo_Keys");
			if (xmlKeys) {
				var keys = xmlKeys.text;
				var match = keys.match(/FileVersion=((\d+\.)+\d+)/);
				if (match) {
					WScript.Echo("set RELEASE_VERSION=" + match[1]);
				}
			}
		</script>
	</job>
</package>