Show More
@@ -1,51 +1,52 b'' | |||
|
1 | 1 | <Include> |
|
2 | 2 | <!-- These are component GUIDs used for Mercurial installers. |
|
3 | 3 | YOU MUST CHANGE ALL GUIDs below when copying this file |
|
4 | 4 | and replace 'Mercurial' in this notice with the name of |
|
5 | 5 | your project. Component GUIDs have global namespace! --> |
|
6 | 6 | |
|
7 | 7 | <!-- contrib.wxs --> |
|
8 | 8 | <?define contrib.guid = {4E11FFC2-E2F7-482A-8460-9394B5489F02} ?> |
|
9 | 9 | <?define contrib.vim.guid = {BB04903A-652D-4C4F-9590-2BD07A2304F2} ?> |
|
10 | 10 | |
|
11 | 11 | <!-- dist.wxs --> |
|
12 | 12 | <?define dist.guid = {CE405FE6-CD1E-4873-9C9A-7683AE5A3D90} ?> |
|
13 | 13 | <?define lib.guid = {91D53B14-E924-432A-ACA2-65F9B3F7C56A} ?> |
|
14 | 14 | |
|
15 | 15 | <!-- doc.wxs --> |
|
16 | 16 | <?define doc.hg.1.html.guid = {AAAA3FDA-EDC5-4220-B59D-D342722358A2} ?> |
|
17 | 17 | <?define doc.hgignore.5.html.guid = {AA9118C4-F3A0-4429-A5F4-5A1906B2D67F} ?> |
|
18 | 18 | <?define doc.hgrc.5.html = {E0CEA1EB-FA01-408c-844B-EE5965165BAE} ?> |
|
19 | 19 | <?define doc.style.css = {172F8262-98E0-4711-BD39-4DAE0D77EF05} ?> |
|
20 | 20 | |
|
21 | 21 | <!-- help.wxs --> |
|
22 |
<?define help |
|
|
22 | <?define help.root.guid = {9FA957DB-6DFE-44f2-AD03-293B2791CF17} ?> | |
|
23 | <?define help.internals.guid = {2DD7669D-0DB8-4C39-9806-78E6475E7ACC} ?> | |
|
23 | 24 | |
|
24 | 25 | <!-- i18n.wxs --> |
|
25 | 26 | <?define i18nFolder.guid = {1BF8026D-CF7C-4174-AEE6-D6B7BF119248} ?> |
|
26 | 27 | |
|
27 | 28 | <!-- templates.wxs --> |
|
28 | 29 | <?define templates.root.guid = {437FD55C-7756-4EA0-87E5-FDBE75DC8595} ?> |
|
29 | 30 | <?define templates.atom.guid = {D30E14A5-8AF0-4268-8B00-00BEE9E09E39} ?> |
|
30 | 31 | <?define templates.coal.guid = {B63CCAAB-4EAF-43b4-901E-4BD13F5B78FC} ?> |
|
31 | 32 | <?define templates.gitweb.guid = {827334AF-1EFD-421B-962C-5660A068F612} ?> |
|
32 | 33 | <?define templates.json.guid = {F535BE7A-EC34-46E0-B9BE-013F3DBAFB19} ?> |
|
33 | 34 | <?define templates.monoblue.guid = {8060A1E4-BD4C-453E-92CB-9536DC44A9E3} ?> |
|
34 | 35 | <?define templates.paper.guid = {61AB1DE9-645F-46ED-8AF8-0CF02267FFBB} ?> |
|
35 | 36 | <?define templates.raw.guid = {834DF8D7-9784-43A6-851D-A96CE1B3575B} ?> |
|
36 | 37 | <?define templates.rss.guid = {9338FA09-E128-4B1C-B723-1142DBD09E14} ?> |
|
37 | 38 | <?define templates.spartan.guid = {80222625-FA8F-44b1-86CE-1781EF375D09} ?> |
|
38 | 39 | <?define templates.static.guid = {6B3D7C24-98DA-4B67-9F18-35F77357B0B4} ?> |
|
39 | 40 | |
|
40 | 41 | <!-- mercurial.wxs --> |
|
41 | 42 | <?define ProductUpgradeCode = {A1CC6134-E945-4399-BE36-EB0017FDF7CF} ?> |
|
42 | 43 | |
|
43 | 44 | <?define ComponentMainExecutableGUID = {D102B8FA-059B-4ACC-9FA3-8C78C3B58EEF} ?> |
|
44 | 45 | |
|
45 | 46 | <?define ReadMe.guid = {56A8E372-991D-4DCA-B91D-93D775974CF5} ?> |
|
46 | 47 | <?define COPYING.guid = {B7801DBA-1C49-4BF4-91AD-33C65F5C7895} ?> |
|
47 | 48 | <?define mercurial.rc.guid = {1D5FAEEE-7E6E-43B1-9F7F-802714316B15} ?> |
|
48 | 49 | <?define mergetools.rc.guid = {E8A1DC29-FF40-4B5F-BD12-80B9F7BF0CCD} ?> |
|
49 | 50 | <?define ProgramMenuDir.guid = {D5A63320-1238-489B-B68B-CF053E9577CA} ?> |
|
50 | 51 | |
|
51 | 52 | </Include> |
@@ -1,35 +1,51 b'' | |||
|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
|
2 | 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
|
3 | 3 | |
|
4 | 4 | <?include guids.wxi ?> |
|
5 | 5 | <?include defines.wxi ?> |
|
6 | 6 | |
|
7 | 7 | <Fragment> |
|
8 | <ComponentGroup Id='helpFolder'> | |
|
9 | <ComponentRef Id='help.root' /> | |
|
10 | <ComponentRef Id='help.internals' /> | |
|
11 | </ComponentGroup> | |
|
12 | </Fragment> | |
|
13 | ||
|
14 | <Fragment> | |
|
8 | 15 | <DirectoryRef Id="INSTALLDIR"> |
|
9 | 16 | <Directory Id="helpdir" Name="help" FileSource="$(var.SourceDir)"> |
|
10 |
<Component Id="help |
|
|
17 | <Component Id="help.root" Guid="$(var.help.root.guid)" Win64='$(var.IsX64)'> | |
|
11 | 18 | <File Name="config.txt" KeyPath="yes" /> |
|
12 | 19 | <File Name="dates.txt" /> |
|
13 | 20 | <File Name="diffs.txt" /> |
|
14 | 21 | <File Name="environment.txt" /> |
|
15 | 22 | <File Name="extensions.txt" /> |
|
16 | 23 | <File Name="filesets.txt" /> |
|
17 | 24 | <File Name="glossary.txt" /> |
|
18 | 25 | <File Name="hgignore.txt" /> |
|
19 | 26 | <File Name="hgweb.txt" /> |
|
20 | 27 | <File Name="merge-tools.txt" /> |
|
21 | 28 | <File Name="multirevs.txt" /> |
|
22 | 29 | <File Name="patterns.txt" /> |
|
23 | 30 | <File Name="phases.txt" /> |
|
24 | 31 | <File Name="revisions.txt" /> |
|
25 | 32 | <File Name="revsets.txt" /> |
|
26 | 33 | <File Name="scripting.txt" /> |
|
27 | 34 | <File Name="subrepos.txt" /> |
|
28 | 35 | <File Name="templates.txt" /> |
|
29 | 36 | <File Name="urls.txt" /> |
|
30 | 37 | </Component> |
|
38 | ||
|
39 | <Directory Id="help.internaldir" Name="internals"> | |
|
40 | <Component Id="help.internals" Guid="$(var.help.internals.guid)" Win64='$(var.IsX64)'> | |
|
41 | <File Id="internals.bundles.txt" Name="bundles.txt" KeyPath="yes" /> | |
|
42 | <File Id="internals.changegroups.txt" Name="changegroups.txt" /> | |
|
43 | <File Id="internals.revlogs.txt" Name="revlogs.txt" /> | |
|
44 | </Component> | |
|
45 | </Directory> | |
|
46 | ||
|
31 | 47 | </Directory> |
|
32 | 48 | </DirectoryRef> |
|
33 | 49 | </Fragment> |
|
34 | 50 | |
|
35 | 51 | </Wix> |
@@ -1,162 +1,162 b'' | |||
|
1 | 1 | <?xml version='1.0' encoding='windows-1252'?> |
|
2 | 2 | <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> |
|
3 | 3 | |
|
4 | 4 | <!-- Copyright 2010 Steve Borho <steve@borho.org> |
|
5 | 5 | |
|
6 | 6 | This software may be used and distributed according to the terms of the |
|
7 | 7 | GNU General Public License version 2 or any later version. --> |
|
8 | 8 | |
|
9 | 9 | <?include guids.wxi ?> |
|
10 | 10 | <?include defines.wxi ?> |
|
11 | 11 | |
|
12 | 12 | <?if $(var.Platform) = "x64" ?> |
|
13 | 13 | <?define PFolder = ProgramFiles64Folder ?> |
|
14 | 14 | <?else?> |
|
15 | 15 | <?define PFolder = ProgramFilesFolder ?> |
|
16 | 16 | <?endif?> |
|
17 | 17 | |
|
18 | 18 | <Product Id='*' |
|
19 | 19 | Name='Mercurial $(var.Version) ($(var.Platform))' |
|
20 | 20 | UpgradeCode='$(var.ProductUpgradeCode)' |
|
21 | 21 | Language='1033' Codepage='1252' Version='$(var.Version)' |
|
22 | 22 | Manufacturer='Matt Mackall and others'> |
|
23 | 23 | |
|
24 | 24 | <Package Id='*' |
|
25 | 25 | Keywords='Installer' |
|
26 | 26 | Description="Mercurial distributed SCM (version $(var.Version))" |
|
27 | 27 | Comments='$(var.Comments)' |
|
28 | 28 | Platform='$(var.Platform)' |
|
29 | 29 | Manufacturer='Matt Mackall and others' |
|
30 | 30 | InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' /> |
|
31 | 31 | |
|
32 | 32 | <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1' |
|
33 | 33 | CompressionLevel='high' /> |
|
34 | 34 | <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" /> |
|
35 | 35 | |
|
36 | 36 | <Condition Message='Mercurial MSI installers require Windows XP or higher'> |
|
37 | 37 | VersionNT >= 501 |
|
38 | 38 | </Condition> |
|
39 | 39 | |
|
40 | 40 | <Property Id="INSTALLDIR"> |
|
41 | 41 | <ComponentSearch Id='SearchForMainExecutableComponent' |
|
42 | 42 | Guid='$(var.ComponentMainExecutableGUID)' /> |
|
43 | 43 | </Property> |
|
44 | 44 | |
|
45 | 45 | <!--Property Id='ARPCOMMENTS'>any comments</Property--> |
|
46 | 46 | <Property Id='ARPCONTACT'>mercurial@selenic.com</Property> |
|
47 | 47 | <Property Id='ARPHELPLINK'>https://mercurial-scm.org/wiki/</Property> |
|
48 | 48 | <Property Id='ARPURLINFOABOUT'>https://mercurial-scm.org/about/</Property> |
|
49 | 49 | <Property Id='ARPURLUPDATEINFO'>https://mercurial-scm.org/downloads/</Property> |
|
50 | 50 | <Property Id='ARPHELPTELEPHONE'>https://mercurial-scm.org/wiki/Support</Property> |
|
51 | 51 | <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property> |
|
52 | 52 | |
|
53 | 53 | <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property> |
|
54 | 54 | <Property Id='REINSTALLMODE'>amus</Property> |
|
55 | 55 | |
|
56 | 56 | <!--Auto-accept the license page--> |
|
57 | 57 | <Property Id='LicenseAccepted'>1</Property> |
|
58 | 58 | |
|
59 | 59 | <Directory Id='TARGETDIR' Name='SourceDir'> |
|
60 | 60 | <Directory Id='$(var.PFolder)' Name='PFiles'> |
|
61 | 61 | <Directory Id='INSTALLDIR' Name='Mercurial'> |
|
62 | 62 | <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'> |
|
63 | 63 | <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' /> |
|
64 | 64 | <Environment Id="Environment" Name="PATH" Part="last" System="yes" |
|
65 | 65 | Permanent="no" Value="[INSTALLDIR]" Action="set" /> |
|
66 | 66 | </Component> |
|
67 | 67 | <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'> |
|
68 | 68 | <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html' |
|
69 | 69 | KeyPath='yes'/> |
|
70 | 70 | </Component> |
|
71 | 71 | <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'> |
|
72 | 72 | <File Id='COPYING' Name='COPYING.rtf' Source='contrib\wix\COPYING.rtf' |
|
73 | 73 | KeyPath='yes'/> |
|
74 | 74 | </Component> |
|
75 | 75 | |
|
76 | 76 | <Directory Id='HGRCD' Name='hgrc.d'> |
|
77 | 77 | <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'> |
|
78 | 78 | <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini' |
|
79 | 79 | ReadOnly='yes' KeyPath='yes'/> |
|
80 | 80 | </Component> |
|
81 | 81 | <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'> |
|
82 | 82 | <File Id='mergetools.rc' Name='MergeTools.rc' Source='mercurial\default.d\mergetools.rc' |
|
83 | 83 | ReadOnly='yes' KeyPath='yes'/> |
|
84 | 84 | </Component> |
|
85 | 85 | </Directory> |
|
86 | 86 | |
|
87 | 87 | </Directory> |
|
88 | 88 | </Directory> |
|
89 | 89 | |
|
90 | 90 | <Directory Id="ProgramMenuFolder" Name="Programs"> |
|
91 | 91 | <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)"> |
|
92 | 92 | <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'> |
|
93 | 93 | <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> |
|
94 | 94 | <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string' |
|
95 | 95 | Value='[INSTALLDIR]' KeyPath='yes' /> |
|
96 | 96 | <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site' |
|
97 | 97 | Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' /> |
|
98 | 98 | </Component> |
|
99 | 99 | </Directory> |
|
100 | 100 | </Directory> |
|
101 | 101 | |
|
102 | 102 | <?if $(var.Platform) = "x86" ?> |
|
103 | 103 | <Merge Id='VCRuntime' DiskId='1' Language='1033' |
|
104 | 104 | SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' /> |
|
105 | 105 | <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' |
|
106 | 106 | SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' /> |
|
107 | 107 | <?else?> |
|
108 | 108 | <Merge Id='VCRuntime' DiskId='1' Language='1033' |
|
109 | 109 | SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' /> |
|
110 | 110 | <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033' |
|
111 | 111 | SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' /> |
|
112 | 112 | <?endif?> |
|
113 | 113 | </Directory> |
|
114 | 114 | |
|
115 | 115 | <Feature Id='Complete' Title='Mercurial' Description='The complete package' |
|
116 | 116 | Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' > |
|
117 | 117 | <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app' |
|
118 | 118 | Level='1' Absent='disallow' > |
|
119 | 119 | <ComponentRef Id='MainExecutable' /> |
|
120 | 120 | <ComponentRef Id='distOutput' /> |
|
121 | 121 | <ComponentRef Id='libOutput' /> |
|
122 | 122 | <ComponentRef Id='ProgramMenuDir' /> |
|
123 | 123 | <ComponentRef Id='ReadMe' /> |
|
124 | 124 | <ComponentRef Id='COPYING' /> |
|
125 | 125 | <ComponentRef Id='mercurial.rc' /> |
|
126 | 126 | <ComponentRef Id='mergetools.rc' /> |
|
127 | <ComponentRef Id='helpFolder' /> | |
|
127 | <ComponentGroupRef Id='helpFolder' /> | |
|
128 | 128 | <ComponentGroupRef Id='templatesFolder' /> |
|
129 | 129 | <MergeRef Id='VCRuntime' /> |
|
130 | 130 | <MergeRef Id='VCRuntimePolicy' /> |
|
131 | 131 | </Feature> |
|
132 | 132 | <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'> |
|
133 | 133 | <ComponentGroupRef Id='localeFolder' /> |
|
134 | 134 | <ComponentRef Id='i18nFolder' /> |
|
135 | 135 | </Feature> |
|
136 | 136 | <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'> |
|
137 | 137 | <ComponentGroupRef Id='docFolder' /> |
|
138 | 138 | </Feature> |
|
139 | 139 | <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'> |
|
140 | 140 | <ComponentGroupRef Id='contribFolder' /> |
|
141 | 141 | </Feature> |
|
142 | 142 | </Feature> |
|
143 | 143 | |
|
144 | 144 | <UIRef Id="WixUI_FeatureTree" /> |
|
145 | 145 | <UIRef Id="WixUI_ErrorProgressText" /> |
|
146 | 146 | |
|
147 | 147 | <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" /> |
|
148 | 148 | |
|
149 | 149 | <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" /> |
|
150 | 150 | |
|
151 | 151 | <Upgrade Id='$(var.ProductUpgradeCode)'> |
|
152 | 152 | <UpgradeVersion |
|
153 | 153 | IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no' |
|
154 | 154 | Property='INSTALLEDMERCURIALPRODUCTS' /> |
|
155 | 155 | </Upgrade> |
|
156 | 156 | |
|
157 | 157 | <InstallExecuteSequence> |
|
158 | 158 | <RemoveExistingProducts After='InstallInitialize'/> |
|
159 | 159 | </InstallExecuteSequence> |
|
160 | 160 | |
|
161 | 161 | </Product> |
|
162 | 162 | </Wix> |
@@ -1,114 +1,111 b'' | |||
|
1 | 1 | hg debuginstall |
|
2 | 2 | $ hg debuginstall |
|
3 | 3 | checking encoding (ascii)... |
|
4 | 4 | checking Python executable (*) (glob) |
|
5 | 5 | checking Python version (2.*) (glob) |
|
6 | 6 | checking Python lib (*lib*)... (glob) |
|
7 | 7 | checking installed modules (*mercurial)... (glob) |
|
8 | 8 | checking templates (*mercurial?templates)... (glob) |
|
9 | 9 | checking commit editor... |
|
10 | 10 | checking username... |
|
11 | 11 | no problems detected |
|
12 | 12 | |
|
13 | 13 | hg debuginstall with no username |
|
14 | 14 | $ HGUSER= hg debuginstall |
|
15 | 15 | checking encoding (ascii)... |
|
16 | 16 | checking Python executable (*) (glob) |
|
17 | 17 | checking Python version (2.*) (glob) |
|
18 | 18 | checking Python lib (*lib*)... (glob) |
|
19 | 19 | checking installed modules (*mercurial)... (glob) |
|
20 | 20 | checking templates (*mercurial?templates)... (glob) |
|
21 | 21 | checking commit editor... |
|
22 | 22 | checking username... |
|
23 | 23 | no username supplied |
|
24 | 24 | (specify a username in your configuration file) |
|
25 | 25 | 1 problems detected, please check your install! |
|
26 | 26 | [1] |
|
27 | 27 | |
|
28 | 28 | path variables are expanded (~ is the same as $TESTTMP) |
|
29 | 29 | $ mkdir tools |
|
30 | 30 | $ touch tools/testeditor.exe |
|
31 | 31 | #if execbit |
|
32 | 32 | $ chmod 755 tools/testeditor.exe |
|
33 | 33 | #endif |
|
34 | 34 | $ hg debuginstall --config ui.editor=~/tools/testeditor.exe |
|
35 | 35 | checking encoding (ascii)... |
|
36 | 36 | checking Python executable (*) (glob) |
|
37 | 37 | checking Python version (*) (glob) |
|
38 | 38 | checking Python lib (*lib*)... (glob) |
|
39 | 39 | checking installed modules (*mercurial)... (glob) |
|
40 | 40 | checking templates (*mercurial?templates)... (glob) |
|
41 | 41 | checking commit editor... |
|
42 | 42 | checking username... |
|
43 | 43 | no problems detected |
|
44 | 44 | |
|
45 | 45 | #if test-repo |
|
46 | 46 | $ cat >> wixxml.py << EOF |
|
47 | 47 | > import os, subprocess, sys |
|
48 | 48 | > import xml.etree.ElementTree as ET |
|
49 | 49 | > |
|
50 | 50 | > # MSYS mangles the path if it expands $TESTDIR |
|
51 | 51 | > testdir = os.environ['TESTDIR'] |
|
52 | 52 | > ns = {'wix' : 'http://schemas.microsoft.com/wix/2006/wi'} |
|
53 | 53 | > |
|
54 | 54 | > def directory(node, relpath): |
|
55 | 55 | > '''generator of files in the xml node, rooted at relpath''' |
|
56 | 56 | > dirs = node.findall('./{%(wix)s}Directory' % ns) |
|
57 | 57 | > |
|
58 | 58 | > for d in dirs: |
|
59 | 59 | > for subfile in directory(d, relpath + d.attrib['Name'] + '/'): |
|
60 | 60 | > yield subfile |
|
61 | 61 | > |
|
62 | 62 | > files = node.findall('./{%(wix)s}Component/{%(wix)s}File' % ns) |
|
63 | 63 | > |
|
64 | 64 | > for f in files: |
|
65 | 65 | > yield relpath + f.attrib['Name'] |
|
66 | 66 | > |
|
67 | 67 | > def hgdirectory(relpath): |
|
68 | 68 | > '''generator of tracked files, rooted at relpath''' |
|
69 | 69 | > hgdir = "%s/../mercurial" % (testdir) |
|
70 | 70 | > args = ['hg', '--cwd', hgdir, 'files', relpath] |
|
71 | 71 | > proc = subprocess.Popen(args, stdout=subprocess.PIPE, |
|
72 | 72 | > stderr=subprocess.PIPE) |
|
73 | 73 | > output = proc.communicate()[0] |
|
74 | 74 | > |
|
75 | 75 | > slash = '/' |
|
76 | 76 | > for line in output.splitlines(): |
|
77 | 77 | > if os.name == 'nt': |
|
78 | 78 | > yield line.replace(os.sep, slash) |
|
79 | 79 | > else: |
|
80 | 80 | > yield line |
|
81 | 81 | > |
|
82 | 82 | > tracked = [f for f in hgdirectory(sys.argv[1])] |
|
83 | 83 | > |
|
84 | 84 | > xml = ET.parse("%s/../contrib/wix/%s.wxs" % (testdir, sys.argv[1])) |
|
85 | 85 | > root = xml.getroot() |
|
86 | 86 | > dir = root.find('.//{%(wix)s}DirectoryRef' % ns) |
|
87 | 87 | > |
|
88 | 88 | > installed = [f for f in directory(dir, '')] |
|
89 | 89 | > |
|
90 | 90 | > print('Not installed:') |
|
91 | 91 | > for f in sorted(set(tracked) - set(installed)): |
|
92 | 92 | > print(' %s' % f) |
|
93 | 93 | > |
|
94 | 94 | > print('Not tracked:') |
|
95 | 95 | > for f in sorted(set(installed) - set(tracked)): |
|
96 | 96 | > print(' %s' % f) |
|
97 | 97 | > EOF |
|
98 | 98 | |
|
99 | 99 | $ python wixxml.py help |
|
100 | 100 | Not installed: |
|
101 | 101 | help/common.txt |
|
102 | 102 | help/hg.1.txt |
|
103 | 103 | help/hgignore.5.txt |
|
104 | 104 | help/hgrc.5.txt |
|
105 | help/internals/bundles.txt | |
|
106 | help/internals/changegroups.txt | |
|
107 | help/internals/revlogs.txt | |
|
108 | 105 | Not tracked: |
|
109 | 106 | |
|
110 | 107 | $ python wixxml.py templates |
|
111 | 108 | Not installed: |
|
112 | 109 | Not tracked: |
|
113 | 110 | |
|
114 | 111 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now