43 ('dist/msvc*.dll', './'), |
43 ('dist/msvc*.dll', './'), |
44 ('dist/python*.dll', './'), |
44 ('dist/python*.dll', './'), |
45 ('doc/*.html', 'doc/'), |
45 ('doc/*.html', 'doc/'), |
46 ('doc/style.css', 'doc/'), |
46 ('doc/style.css', 'doc/'), |
47 ('mercurial/helptext/**/*.txt', 'helptext/'), |
47 ('mercurial/helptext/**/*.txt', 'helptext/'), |
48 ('mercurial/defaultrc/*.rc', 'hgrc.d/'), |
48 ('mercurial/defaultrc/*.rc', 'defaultrc/'), |
49 ('mercurial/locale/**/*', 'locale/'), |
49 ('mercurial/locale/**/*', 'locale/'), |
50 ('mercurial/templates/**/*', 'Templates/'), |
50 ('mercurial/templates/**/*', 'Templates/'), |
51 ('COPYING', 'Copying.txt'), |
51 ('COPYING', 'Copying.txt'), |
52 ] |
52 ] |
53 |
53 |
230 |
230 |
231 process_install_rules(rules, source_dir, staging_dir) |
231 process_install_rules(rules, source_dir, staging_dir) |
232 |
232 |
233 # Write out a default editor.rc file to configure notepad as the |
233 # Write out a default editor.rc file to configure notepad as the |
234 # default editor. |
234 # default editor. |
235 with (staging_dir / 'hgrc.d' / 'editor.rc').open( |
235 with (staging_dir / 'defaultrc' / 'editor.rc').open( |
236 'w', encoding='utf-8' |
236 'w', encoding='utf-8' |
237 ) as fh: |
237 ) as fh: |
238 fh.write('[ui]\neditor = notepad\n') |
238 fh.write('[ui]\neditor = notepad\n') |
239 |
239 |
240 # Purge any files we don't want to be there. |
240 # Purge any files we don't want to be there. |