2 @if "%2"=="" @goto :error
3 @if "%1"=="" @goto :error
4 @rem Choose executable (commercial build if there is one).
5 @if exist netscp6.exe @goto :nav
10 @rem Set profiles, defaulting to "Default User"
12 @if "%3"=="" @goto :defaultUser
16 @set profile1=Default User
18 @if "%4"=="" @goto :defaultUser2
22 @set profile2=%profile1%
24 @echo ----- %1/%profile1% -----
25 @rem For each *.jar.<a>, save *.jar and replace it.
26 @for %%x in ( chrome\*.jar ) do @if exist %%x.%1 (copy %%x %%x.save >nul & copy %%x.%1 %%x >nul)
27 @rem Do likewise for these special files: installed-chrome.txt chrome.rdf
28 @for %%x in ( chrome\installed-chrome.txt chrome\chrome.rdf ) do @if exist %%x.%1 (copy %%x %%x.save >nul & copy %%x.%1 %%x >nul)
29 @%prog% -P "%profile1%" -url chrome://navigator/content/quit.html > nul
30 @%prog% -P "%profile1%" -url chrome://navigator/content/quit.html > nul
31 @grep \"Navigator Window visible now" "%NS_TIMELINE_LOG_FILE%"
32 @%prog% -P "%profile1%" -url chrome://navigator/content/quit.html > nul
33 @grep \"Navigator Window visible now" "%NS_TIMELINE_LOG_FILE%"
34 @%prog% -P "%profile1%" -url chrome://navigator/content/quit.html > nul
35 @grep \"Navigator Window visible now" "%NS_TIMELINE_LOG_FILE%"
36 @copy "%NS_TIMELINE_LOG_FILE%" "%1.%profile1%.log" > nul
37 @rem Restore *.jar files.
38 @for %%x in ( chrome\*.jar ) do @if exist %%x.%1 @(copy %%x.save %%x >nul & del %%x.save)
39 @rem Restore special files.
40 @for %%x in ( chrome\installed-chrome.txt chrome\chrome.rdf ) do @if exist %%x.%1 @(copy %%x.save %%x >nul & del %%x.save)
42 @echo ----- %2/%profile2% -----
43 @rem For each *.jar.<b>, save *.jar and replace it.
44 @for %%x in ( chrome\*.jar ) do @if exist %%x.%2 @(copy %%x %%x.save >nul & copy %%x.%2 %%x >nul)
45 @rem Do likewise for these special files: installed-chrome.txt chrome.rdf
46 @for %%x in ( chrome\installed-chrome.txt chrome\chrome.rdf ) do @if exist %%x.%2 (copy %%x %%x.save >nul & copy %%x.%2 %%x >nul)
47 @%prog% -P "%profile2%" -url chrome://navigator/content/quit.html > nul
48 @%prog% -P "%profile2%" -url chrome://navigator/content/quit.html > nul
49 @grep \"Navigator Window visible now" "%NS_TIMELINE_LOG_FILE%"
50 @%prog% -P "%profile2%" -url chrome://navigator/content/quit.html > nul
51 @grep \"Navigator Window visible now" "%NS_TIMELINE_LOG_FILE%"
52 @%prog% -P "%profile2%" -url chrome://navigator/content/quit.html > nul
53 @grep \"Navigator Window visible now" "%NS_TIMELINE_LOG_FILE%"
54 @copy "%NS_TIMELINE_LOG_FILE%" "%2.%profile2%.log" > nul
55 @rem Restore *.jar files.
56 @for %%x in ( chrome\*.jar ) do @if exist %%x.%2 @(copy %%x.save %%x >nul & del %%x.save)
57 @rem Restore special files.
58 @for %%x in ( chrome\installed-chrome.txt chrome\chrome.rdf ) do @if exist %%x.%2 @(copy %%x.save %%x >nul & del %%x.save)
62 @echo Syntax: compareNav ^<a^> ^<b^> ^<profile1^> ^<profile2^>
63 @echo where ^<a^> and ^<b^> are flavors of comm.jar
64 @echo e.g., comm.jar.^<a^> and comm.jar.^<b^>
65 @echo and ^<profile1^> and ^<profile2^> are optional profile names
66 @echo to use; e.g., "classic" or "modern"; profile1 defaults to
67 @echo "Default User", profile2 defaults to profile1