##// END OF EJS Templates
config: move mergetools configuration from contrib to default configuration...
Mads Kiilerich -
r23143:cd0c51c0 default
parent child Browse files
Show More
@@ -1,163 +1,161 b''
1 %global emacs_lispdir %{_datadir}/emacs/site-lisp
1 %global emacs_lispdir %{_datadir}/emacs/site-lisp
2
2
3 %define withpython %{nil}
3 %define withpython %{nil}
4
4
5 %if "%{?withpython}"
5 %if "%{?withpython}"
6
6
7 %global pythonver %{withpython}
7 %global pythonver %{withpython}
8 %global pythonname Python-%{withpython}
8 %global pythonname Python-%{withpython}
9 %global docutilsname docutils-0.12
9 %global docutilsname docutils-0.12
10 %global docutilsmd5 4622263b62c5c771c03502afa3157768
10 %global docutilsmd5 4622263b62c5c771c03502afa3157768
11 %global pythonhg python-hg
11 %global pythonhg python-hg
12 %global hgpyprefix /usr/%{pythonhg}
12 %global hgpyprefix /usr/%{pythonhg}
13 # byte compilation will fail on some some Python /test/ files
13 # byte compilation will fail on some some Python /test/ files
14 %global _python_bytecompile_errors_terminate_build 0
14 %global _python_bytecompile_errors_terminate_build 0
15
15
16 %else
16 %else
17
17
18 %global pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
18 %global pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
19
19
20 %endif
20 %endif
21
21
22 Summary: A fast, lightweight Source Control Management system
22 Summary: A fast, lightweight Source Control Management system
23 Name: mercurial
23 Name: mercurial
24 Version: snapshot
24 Version: snapshot
25 Release: 0
25 Release: 0
26 License: GPLv2+
26 License: GPLv2+
27 Group: Development/Tools
27 Group: Development/Tools
28 URL: http://mercurial.selenic.com/
28 URL: http://mercurial.selenic.com/
29 Source0: %{name}-%{version}-%{release}.tar.gz
29 Source0: %{name}-%{version}-%{release}.tar.gz
30 %if "%{?withpython}"
30 %if "%{?withpython}"
31 Source1: %{pythonname}.tgz
31 Source1: %{pythonname}.tgz
32 Source2: %{docutilsname}.tar.gz
32 Source2: %{docutilsname}.tar.gz
33 %endif
33 %endif
34 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
34 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
35
35
36 BuildRequires: make, gcc, gettext
36 BuildRequires: make, gcc, gettext
37 %if "%{?withpython}"
37 %if "%{?withpython}"
38 BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel
38 BuildRequires: readline-devel, openssl-devel, ncurses-devel, zlib-devel, bzip2-devel
39 %else
39 %else
40 BuildRequires: python >= 2.4, python-devel, python-docutils >= 0.5
40 BuildRequires: python >= 2.4, python-devel, python-docutils >= 0.5
41 Requires: python >= 2.4
41 Requires: python >= 2.4
42 %endif
42 %endif
43 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
43 # The hgk extension uses the wish tcl interpreter, but we don't enforce it
44 #Requires: tk
44 #Requires: tk
45
45
46 %description
46 %description
47 Mercurial is a fast, lightweight source control management system designed
47 Mercurial is a fast, lightweight source control management system designed
48 for efficient handling of very large distributed projects.
48 for efficient handling of very large distributed projects.
49
49
50 %prep
50 %prep
51
51
52 %if "%{?withpython}"
52 %if "%{?withpython}"
53 %setup -q -n mercurial-%{version}-%{release} -a1 -a2
53 %setup -q -n mercurial-%{version}-%{release} -a1 -a2
54 # despite the comments in cgi.py, we do this to prevent rpmdeps from picking /usr/local/bin/python up
54 # despite the comments in cgi.py, we do this to prevent rpmdeps from picking /usr/local/bin/python up
55 sed -i '1c#! /usr/bin/env python' %{pythonname}/Lib/cgi.py
55 sed -i '1c#! /usr/bin/env python' %{pythonname}/Lib/cgi.py
56 %else
56 %else
57 %setup -q -n mercurial-%{version}-%{release}
57 %setup -q -n mercurial-%{version}-%{release}
58 %endif
58 %endif
59
59
60 %build
60 %build
61
61
62 %if "%{?withpython}"
62 %if "%{?withpython}"
63
63
64 PYPATH=$PWD/%{pythonname}
64 PYPATH=$PWD/%{pythonname}
65 cd $PYPATH
65 cd $PYPATH
66 ./configure --prefix=%{hgpyprefix}
66 ./configure --prefix=%{hgpyprefix}
67 make all %{?_smp_mflags}
67 make all %{?_smp_mflags}
68 cd -
68 cd -
69
69
70 cd %{docutilsname}
70 cd %{docutilsname}
71 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py build
71 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py build
72 cd -
72 cd -
73
73
74 # verify Python environment
74 # verify Python environment
75 LD_LIBRARY_PATH=$PYPATH PYTHONPATH=$PWD/%{docutilsname} $PYPATH/python -c 'import sys, zlib, bz2, ssl, curses, readline'
75 LD_LIBRARY_PATH=$PYPATH PYTHONPATH=$PWD/%{docutilsname} $PYPATH/python -c 'import sys, zlib, bz2, ssl, curses, readline'
76
76
77 # set environment for make
77 # set environment for make
78 export PATH=$PYPATH:$PATH
78 export PATH=$PYPATH:$PATH
79 export LD_LIBRARY_PATH=$PYPATH
79 export LD_LIBRARY_PATH=$PYPATH
80 export CFLAGS="-L $PYPATH"
80 export CFLAGS="-L $PYPATH"
81 export PYTHONPATH=$PWD/%{docutilsname}
81 export PYTHONPATH=$PWD/%{docutilsname}
82
82
83 %endif
83 %endif
84
84
85 make all
85 make all
86
86
87 %install
87 %install
88 rm -rf $RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
89
89
90 %if "%{?withpython}"
90 %if "%{?withpython}"
91
91
92 PYPATH=$PWD/%{pythonname}
92 PYPATH=$PWD/%{pythonname}
93 cd $PYPATH
93 cd $PYPATH
94 make install DESTDIR=$RPM_BUILD_ROOT
94 make install DESTDIR=$RPM_BUILD_ROOT
95 # these .a are not necessary and they are readonly and strip fails - kill them!
95 # these .a are not necessary and they are readonly and strip fails - kill them!
96 rm -f %{buildroot}%{hgpyprefix}/lib/{,python2.*/config}/libpython2.*.a
96 rm -f %{buildroot}%{hgpyprefix}/lib/{,python2.*/config}/libpython2.*.a
97 cd -
97 cd -
98
98
99 cd %{docutilsname}
99 cd %{docutilsname}
100 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py install --root="$RPM_BUILD_ROOT"
100 LD_LIBRARY_PATH=$PYPATH $PYPATH/python setup.py install --root="$RPM_BUILD_ROOT"
101 cd -
101 cd -
102
102
103 PATH=$PYPATH:$PATH LD_LIBRARY_PATH=$PYPATH make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{hgpyprefix} MANDIR=%{_mandir}
103 PATH=$PYPATH:$PATH LD_LIBRARY_PATH=$PYPATH make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{hgpyprefix} MANDIR=%{_mandir}
104 mkdir -p $RPM_BUILD_ROOT%{_bindir}
104 mkdir -p $RPM_BUILD_ROOT%{_bindir}
105 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/hg . )
105 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/hg . )
106 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/python2.? %{pythonhg} )
106 ( cd $RPM_BUILD_ROOT%{_bindir}/ && ln -s ../..%{hgpyprefix}/bin/python2.? %{pythonhg} )
107
107
108 %else
108 %else
109
109
110 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
110 make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
111
111
112 %endif
112 %endif
113
113
114 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/
114 install -m 755 contrib/hgk $RPM_BUILD_ROOT%{_bindir}/
115 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/
115 install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}/
116
116
117 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
117 bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
118 mkdir -p $bash_completion_dir
118 mkdir -p $bash_completion_dir
119 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
119 install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
120
120
121 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
121 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
122 mkdir -p $zsh_completion_dir
122 mkdir -p $zsh_completion_dir
123 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
123 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
124
124
125 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
125 mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
126 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}/
126 install -m 644 contrib/mercurial.el $RPM_BUILD_ROOT%{emacs_lispdir}/
127 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}/
127 install -m 644 contrib/mq.el $RPM_BUILD_ROOT%{emacs_lispdir}/
128
128
129 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
129 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
130 install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
131
130
132 %clean
131 %clean
133 rm -rf $RPM_BUILD_ROOT
132 rm -rf $RPM_BUILD_ROOT
134
133
135 %files
134 %files
136 %defattr(-,root,root,-)
135 %defattr(-,root,root,-)
137 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
136 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
138 %doc %attr(644,root,root) %{_mandir}/man?/hg*
137 %doc %attr(644,root,root) %{_mandir}/man?/hg*
139 %doc %attr(644,root,root) contrib/*.svg
138 %doc %attr(644,root,root) contrib/*.svg
140 %dir %{_datadir}/zsh/
139 %dir %{_datadir}/zsh/
141 %dir %{_datadir}/zsh/site-functions/
140 %dir %{_datadir}/zsh/site-functions/
142 %{_datadir}/zsh/site-functions/_mercurial
141 %{_datadir}/zsh/site-functions/_mercurial
143 %dir %{_datadir}/emacs/site-lisp/
142 %dir %{_datadir}/emacs/site-lisp/
144 %{_datadir}/emacs/site-lisp/mercurial.el
143 %{_datadir}/emacs/site-lisp/mercurial.el
145 %{_datadir}/emacs/site-lisp/mq.el
144 %{_datadir}/emacs/site-lisp/mq.el
146 %{_bindir}/hg
145 %{_bindir}/hg
147 %{_bindir}/hgk
146 %{_bindir}/hgk
148 %{_bindir}/hg-ssh
147 %{_bindir}/hg-ssh
149 %dir %{_sysconfdir}/bash_completion.d/
148 %dir %{_sysconfdir}/bash_completion.d/
150 %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh
149 %config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh
151 %dir %{_sysconfdir}/mercurial
150 %dir %{_sysconfdir}/mercurial
152 %dir %{_sysconfdir}/mercurial/hgrc.d
151 %dir %{_sysconfdir}/mercurial/hgrc.d
153 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
154 %if "%{?withpython}"
152 %if "%{?withpython}"
155 %{_bindir}/%{pythonhg}
153 %{_bindir}/%{pythonhg}
156 %{hgpyprefix}
154 %{hgpyprefix}
157 %else
155 %else
158 %if "%{?pythonver}" != "2.4"
156 %if "%{?pythonver}" != "2.4"
159 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
157 %{_libdir}/python%{pythonver}/site-packages/%{name}-*-py%{pythonver}.egg-info
160 %endif
158 %endif
161 %{_libdir}/python%{pythonver}/site-packages/%{name}
159 %{_libdir}/python%{pythonver}/site-packages/%{name}
162 %{_libdir}/python%{pythonver}/site-packages/hgext
160 %{_libdir}/python%{pythonver}/site-packages/hgext
163 %endif
161 %endif
@@ -1,146 +1,146 b''
1 ; Script generated by the Inno Setup Script Wizard.
1 ; Script generated by the Inno Setup Script Wizard.
2 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
2 ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3
3
4 #ifndef VERSION
4 #ifndef VERSION
5 #define FileHandle
5 #define FileHandle
6 #define FileLine
6 #define FileLine
7 #define VERSION = "unknown"
7 #define VERSION = "unknown"
8 #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py")
8 #if FileHandle = FileOpen(SourcePath + "\..\..\mercurial\__version__.py")
9 #expr FileLine = FileRead(FileHandle)
9 #expr FileLine = FileRead(FileHandle)
10 #expr FileLine = FileRead(FileHandle)
10 #expr FileLine = FileRead(FileHandle)
11 #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1)
11 #define VERSION = Copy(FileLine, Pos('"', FileLine)+1, Len(FileLine)-Pos('"', FileLine)-1)
12 #endif
12 #endif
13 #if FileHandle
13 #if FileHandle
14 #expr FileClose(FileHandle)
14 #expr FileClose(FileHandle)
15 #endif
15 #endif
16 #pragma message "Detected Version: " + VERSION
16 #pragma message "Detected Version: " + VERSION
17 #endif
17 #endif
18
18
19 #ifndef ARCH
19 #ifndef ARCH
20 #define ARCH = "x86"
20 #define ARCH = "x86"
21 #endif
21 #endif
22
22
23 [Setup]
23 [Setup]
24 AppCopyright=Copyright 2005-2010 Matt Mackall and others
24 AppCopyright=Copyright 2005-2010 Matt Mackall and others
25 AppName=Mercurial
25 AppName=Mercurial
26 #if ARCH == "x64"
26 #if ARCH == "x64"
27 AppVerName=Mercurial {#VERSION} (64-bit)
27 AppVerName=Mercurial {#VERSION} (64-bit)
28 OutputBaseFilename=Mercurial-{#VERSION}-x64
28 OutputBaseFilename=Mercurial-{#VERSION}-x64
29 ArchitecturesAllowed=x64
29 ArchitecturesAllowed=x64
30 ArchitecturesInstallIn64BitMode=x64
30 ArchitecturesInstallIn64BitMode=x64
31 #else
31 #else
32 AppVerName=Mercurial {#VERSION}
32 AppVerName=Mercurial {#VERSION}
33 OutputBaseFilename=Mercurial-{#VERSION}
33 OutputBaseFilename=Mercurial-{#VERSION}
34 #endif
34 #endif
35 InfoAfterFile=contrib/win32/postinstall.txt
35 InfoAfterFile=contrib/win32/postinstall.txt
36 LicenseFile=COPYING
36 LicenseFile=COPYING
37 ShowLanguageDialog=yes
37 ShowLanguageDialog=yes
38 AppPublisher=Matt Mackall and others
38 AppPublisher=Matt Mackall and others
39 AppPublisherURL=http://mercurial.selenic.com/
39 AppPublisherURL=http://mercurial.selenic.com/
40 AppSupportURL=http://mercurial.selenic.com/
40 AppSupportURL=http://mercurial.selenic.com/
41 AppUpdatesURL=http://mercurial.selenic.com/
41 AppUpdatesURL=http://mercurial.selenic.com/
42 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}
42 AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}
43 AppContact=mercurial@selenic.com
43 AppContact=mercurial@selenic.com
44 DefaultDirName={pf}\Mercurial
44 DefaultDirName={pf}\Mercurial
45 SourceDir=..\..
45 SourceDir=..\..
46 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
46 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
47 VersionInfoCopyright=Copyright 2005-2010 Matt Mackall and others
47 VersionInfoCopyright=Copyright 2005-2010 Matt Mackall and others
48 VersionInfoCompany=Matt Mackall and others
48 VersionInfoCompany=Matt Mackall and others
49 InternalCompressLevel=max
49 InternalCompressLevel=max
50 SolidCompression=true
50 SolidCompression=true
51 SetupIconFile=contrib\win32\mercurial.ico
51 SetupIconFile=contrib\win32\mercurial.ico
52 AllowNoIcons=true
52 AllowNoIcons=true
53 DefaultGroupName=Mercurial
53 DefaultGroupName=Mercurial
54 PrivilegesRequired=none
54 PrivilegesRequired=none
55
55
56 [Files]
56 [Files]
57 Source: contrib\mercurial.el; DestDir: {app}/Contrib
57 Source: contrib\mercurial.el; DestDir: {app}/Contrib
58 Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim
58 Source: contrib\vim\*.*; DestDir: {app}/Contrib/Vim
59 Source: contrib\zsh_completion; DestDir: {app}/Contrib
59 Source: contrib\zsh_completion; DestDir: {app}/Contrib
60 Source: contrib\bash_completion; DestDir: {app}/Contrib
60 Source: contrib\bash_completion; DestDir: {app}/Contrib
61 Source: contrib\tcsh_completion; DestDir: {app}/Contrib
61 Source: contrib\tcsh_completion; DestDir: {app}/Contrib
62 Source: contrib\tcsh_completion_build.sh; DestDir: {app}/Contrib
62 Source: contrib\tcsh_completion_build.sh; DestDir: {app}/Contrib
63 Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl
63 Source: contrib\hgk; DestDir: {app}/Contrib; DestName: hgk.tcl
64 Source: contrib\xml.rnc; DestDir: {app}/Contrib
64 Source: contrib\xml.rnc; DestDir: {app}/Contrib
65 Source: contrib\mercurial.el; DestDir: {app}/Contrib
65 Source: contrib\mercurial.el; DestDir: {app}/Contrib
66 Source: contrib\mq.el; DestDir: {app}/Contrib
66 Source: contrib\mq.el; DestDir: {app}/Contrib
67 Source: contrib\hgweb.fcgi; DestDir: {app}/Contrib
67 Source: contrib\hgweb.fcgi; DestDir: {app}/Contrib
68 Source: contrib\hgweb.wsgi; DestDir: {app}/Contrib
68 Source: contrib\hgweb.wsgi; DestDir: {app}/Contrib
69 Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme
69 Source: contrib\win32\ReadMe.html; DestDir: {app}; Flags: isreadme
70 Source: contrib\mergetools.hgrc; DestDir: {tmp};
71 Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles;
70 Source: contrib\win32\mercurial.ini; DestDir: {app}; DestName: Mercurial.ini; Check: CheckFile; AfterInstall: ConcatenateFiles;
72 Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt
71 Source: contrib\win32\postinstall.txt; DestDir: {app}; DestName: ReleaseNotes.txt
73 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
72 Source: dist\hg.exe; DestDir: {app}; AfterInstall: Touch('{app}\hg.exe.local')
74 #if ARCH == "x64"
73 #if ARCH == "x64"
75 Source: dist\*.dll; Destdir: {app}
74 Source: dist\*.dll; Destdir: {app}
76 Source: dist\*.pyd; Destdir: {app}
75 Source: dist\*.pyd; Destdir: {app}
77 #else
76 #else
78 Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist
77 Source: dist\python*.dll; Destdir: {app}; Flags: skipifsourcedoesntexist
79 Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist
78 Source: dist\msvc*.dll; DestDir: {app}; Flags: skipifsourcedoesntexist
80 Source: dist\w9xpopen.exe; DestDir: {app}
79 Source: dist\w9xpopen.exe; DestDir: {app}
81 #endif
80 #endif
82 Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
81 Source: dist\Microsoft.VC*.CRT.manifest; DestDir: {app}; Flags: skipifsourcedoesntexist
83 Source: dist\library.zip; DestDir: {app}
82 Source: dist\library.zip; DestDir: {app}
84 Source: dist\add_path.exe; DestDir: {app}
83 Source: dist\add_path.exe; DestDir: {app}
85 Source: dist\cacert.pem; Destdir: {app}
84 Source: dist\cacert.pem; Destdir: {app}
86 Source: doc\*.html; DestDir: {app}\Docs
85 Source: doc\*.html; DestDir: {app}\Docs
87 Source: doc\style.css; DestDir: {app}\Docs
86 Source: doc\style.css; DestDir: {app}\Docs
88 Source: mercurial\help\*.txt; DestDir: {app}\help
87 Source: mercurial\help\*.txt; DestDir: {app}\help
88 Source: mercurial\default-hgrc.d\*.rc; DestDir: {app}\default-hgrc.d
89 Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs skipifsourcedoesntexist
89 Source: mercurial\locale\*.*; DestDir: {app}\locale; Flags: recursesubdirs createallsubdirs skipifsourcedoesntexist
90 Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
90 Source: mercurial\templates\*.*; DestDir: {app}\Templates; Flags: recursesubdirs createallsubdirs
91 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
91 Source: CONTRIBUTORS; DestDir: {app}; DestName: Contributors.txt
92 Source: COPYING; DestDir: {app}; DestName: Copying.txt
92 Source: COPYING; DestDir: {app}; DestName: Copying.txt
93
93
94 [INI]
94 [INI]
95 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/
95 Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: http://mercurial.selenic.com/
96 Filename: {app}\Mercurial.ini; Section: web; Key: cacerts; String: {app}\cacert.pem
96 Filename: {app}\Mercurial.ini; Section: web; Key: cacerts; String: {app}\cacert.pem
97
97
98 [UninstallDelete]
98 [UninstallDelete]
99 Type: files; Name: {app}\Mercurial.url
99 Type: files; Name: {app}\Mercurial.url
100
100
101 [Icons]
101 [Icons]
102 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
102 Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
103 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html
103 Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html
104 Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html
104 Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html
105 Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html
105 Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html
106 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
106 Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
107
107
108 [Run]
108 [Run]
109 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
109 Filename: "{app}\add_path.exe"; Parameters: "{app}"; Flags: postinstall; Description: "Add the installation path to the search path"
110
110
111 [UninstallRun]
111 [UninstallRun]
112 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
112 Filename: "{app}\add_path.exe"; Parameters: "/del {app}"
113
113
114 [UninstallDelete]
114 [UninstallDelete]
115 Type: files; Name: "{app}\hg.exe.local"
115 Type: files; Name: "{app}\hg.exe.local"
116
116
117 [Code]
117 [Code]
118 var
118 var
119 WriteFile: Boolean;
119 WriteFile: Boolean;
120 CheckDone: Boolean;
120 CheckDone: Boolean;
121
121
122 function CheckFile(): Boolean;
122 function CheckFile(): Boolean;
123 begin
123 begin
124 if not CheckDone then begin
124 if not CheckDone then begin
125 WriteFile := True;
125 WriteFile := True;
126 if FileExists(ExpandConstant(CurrentFileName)) then begin
126 if FileExists(ExpandConstant(CurrentFileName)) then begin
127 WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes;
127 WriteFile := MsgBox('' + ExpandConstant(CurrentFileName) + '' #13#13 'The file already exists.' #13#13 'Would you like Setup to overwrite it?', mbConfirmation, MB_YESNO) = idYes;
128 end;
128 end;
129 CheckDone := True;
129 CheckDone := True;
130 end;
130 end;
131 Result := WriteFile;
131 Result := WriteFile;
132 end;
132 end;
133
133
134 procedure ConcatenateFiles();
134 procedure ConcatenateFiles();
135 var
135 var
136 MergeConfigs: TArrayOfString;
136 MergeConfigs: TArrayOfString;
137 begin
137 begin
138 if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin
138 if LoadStringsFromFile(ExpandConstant('{tmp}\mergetools.hgrc'),MergeConfigs) then begin
139 SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True);
139 SaveStringsToFile(ExpandConstant(CurrentFileName),MergeConfigs,True);
140 end;
140 end;
141 end;
141 end;
142
142
143 procedure Touch(fn: String);
143 procedure Touch(fn: String);
144 begin
144 begin
145 SaveStringToFile(ExpandConstant(fn), '', False);
145 SaveStringToFile(ExpandConstant(fn), '', False);
146 end;
146 end;
@@ -1,172 +1,172 b''
1 <?xml version='1.0' encoding='windows-1252'?>
1 <?xml version='1.0' encoding='windows-1252'?>
2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
2 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
3
3
4 <!-- Copyright 2010 Steve Borho <steve@borho.org>
4 <!-- Copyright 2010 Steve Borho <steve@borho.org>
5
5
6 This software may be used and distributed according to the terms of the
6 This software may be used and distributed according to the terms of the
7 GNU General Public License version 2 or any later version. -->
7 GNU General Public License version 2 or any later version. -->
8
8
9 <?include guids.wxi ?>
9 <?include guids.wxi ?>
10 <?include defines.wxi ?>
10 <?include defines.wxi ?>
11
11
12 <?if $(var.Platform) = "x64" ?>
12 <?if $(var.Platform) = "x64" ?>
13 <?define PFolder = ProgramFiles64Folder ?>
13 <?define PFolder = ProgramFiles64Folder ?>
14 <?else?>
14 <?else?>
15 <?define PFolder = ProgramFilesFolder ?>
15 <?define PFolder = ProgramFilesFolder ?>
16 <?endif?>
16 <?endif?>
17
17
18 <Product Id='*'
18 <Product Id='*'
19 Name='Mercurial $(var.Version) ($(var.Platform))'
19 Name='Mercurial $(var.Version) ($(var.Platform))'
20 UpgradeCode='$(var.ProductUpgradeCode)'
20 UpgradeCode='$(var.ProductUpgradeCode)'
21 Language='1033' Codepage='1252' Version='$(var.Version)'
21 Language='1033' Codepage='1252' Version='$(var.Version)'
22 Manufacturer='Matt Mackall and others'>
22 Manufacturer='Matt Mackall and others'>
23
23
24 <Package Id='*'
24 <Package Id='*'
25 Keywords='Installer'
25 Keywords='Installer'
26 Description="Mercurial distributed SCM (version $(var.Version))"
26 Description="Mercurial distributed SCM (version $(var.Version))"
27 Comments='$(var.Comments)'
27 Comments='$(var.Comments)'
28 Platform='$(var.Platform)'
28 Platform='$(var.Platform)'
29 Manufacturer='Matt Mackall and others'
29 Manufacturer='Matt Mackall and others'
30 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
30 InstallerVersion='300' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
31
31
32 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'
32 <Media Id='1' Cabinet='mercurial.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'
33 CompressionLevel='high' />
33 CompressionLevel='high' />
34 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
34 <Property Id='DiskPrompt' Value="Mercurial $(var.Version) Installation [1]" />
35
35
36 <Condition Message='Mercurial MSI installers require Windows XP or higher'>
36 <Condition Message='Mercurial MSI installers require Windows XP or higher'>
37 VersionNT >= 501
37 VersionNT >= 501
38 </Condition>
38 </Condition>
39
39
40 <Property Id="INSTALLDIR">
40 <Property Id="INSTALLDIR">
41 <ComponentSearch Id='SearchForMainExecutableComponent'
41 <ComponentSearch Id='SearchForMainExecutableComponent'
42 Guid='$(var.ComponentMainExecutableGUID)' />
42 Guid='$(var.ComponentMainExecutableGUID)' />
43 </Property>
43 </Property>
44
44
45 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
45 <!--Property Id='ARPCOMMENTS'>any comments</Property-->
46 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property>
46 <Property Id='ARPCONTACT'>mercurial@selenic.com</Property>
47 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property>
47 <Property Id='ARPHELPLINK'>http://mercurial.selenic.com/wiki/</Property>
48 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property>
48 <Property Id='ARPURLINFOABOUT'>http://mercurial.selenic.com/about/</Property>
49 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property>
49 <Property Id='ARPURLUPDATEINFO'>http://mercurial.selenic.com/downloads/</Property>
50 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property>
50 <Property Id='ARPHELPTELEPHONE'>http://mercurial.selenic.com/wiki/Support</Property>
51 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
51 <Property Id='ARPPRODUCTICON'>hgIcon.ico</Property>
52
52
53 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
53 <Property Id='INSTALLEDMERCURIALPRODUCTS' Secure='yes'></Property>
54 <Property Id='REINSTALLMODE'>amus</Property>
54 <Property Id='REINSTALLMODE'>amus</Property>
55
55
56 <!--Auto-accept the license page-->
56 <!--Auto-accept the license page-->
57 <Property Id='LicenseAccepted'>1</Property>
57 <Property Id='LicenseAccepted'>1</Property>
58
58
59 <Directory Id='TARGETDIR' Name='SourceDir'>
59 <Directory Id='TARGETDIR' Name='SourceDir'>
60 <Directory Id='$(var.PFolder)' Name='PFiles'>
60 <Directory Id='$(var.PFolder)' Name='PFiles'>
61 <Directory Id='INSTALLDIR' Name='Mercurial'>
61 <Directory Id='INSTALLDIR' Name='Mercurial'>
62 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'>
62 <Component Id='MainExecutable' Guid='$(var.ComponentMainExecutableGUID)' Win64='$(var.IsX64)'>
63 <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' />
63 <File Id='hgEXE' Name='hg.exe' Source='dist\hg.exe' KeyPath='yes' />
64 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
64 <Environment Id="Environment" Name="PATH" Part="last" System="yes"
65 Permanent="no" Value="[INSTALLDIR]" Action="set" />
65 Permanent="no" Value="[INSTALLDIR]" Action="set" />
66 </Component>
66 </Component>
67 <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'>
67 <Component Id='ReadMe' Guid='$(var.ReadMe.guid)' Win64='$(var.IsX64)'>
68 <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html'
68 <File Id='ReadMe' Name='ReadMe.html' Source='contrib\win32\ReadMe.html'
69 KeyPath='yes'/>
69 KeyPath='yes'/>
70 </Component>
70 </Component>
71 <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'>
71 <Component Id='COPYING' Guid='$(var.COPYING.guid)' Win64='$(var.IsX64)'>
72 <File Id='COPYING' Name='COPYING.rtf' Source='contrib\wix\COPYING.rtf'
72 <File Id='COPYING' Name='COPYING.rtf' Source='contrib\wix\COPYING.rtf'
73 KeyPath='yes'/>
73 KeyPath='yes'/>
74 </Component>
74 </Component>
75
75
76 <Directory Id='HGRCD' Name='hgrc.d'>
76 <Directory Id='HGRCD' Name='hgrc.d'>
77 <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'>
77 <Component Id='mercurial.rc' Guid='$(var.mercurial.rc.guid)' Win64='$(var.IsX64)'>
78 <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini'
78 <File Id='mercurial.rc' Name='Mercurial.rc' Source='contrib\win32\mercurial.ini'
79 ReadOnly='yes' KeyPath='yes'/>
79 ReadOnly='yes' KeyPath='yes'/>
80 </Component>
80 </Component>
81 <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'>
81 <Component Id='mergetools.rc' Guid='$(var.mergetools.rc.guid)' Win64='$(var.IsX64)'>
82 <File Id='mergetools.rc' Name='MergeTools.rc' Source='contrib\mergetools.hgrc'
82 <File Id='mergetools.rc' Name='MergeTools.rc' Source='mercurial\default-hgrc.d\mergetools.rc'
83 ReadOnly='yes' KeyPath='yes'/>
83 ReadOnly='yes' KeyPath='yes'/>
84 </Component>
84 </Component>
85 <Component Id='paths.rc' Guid='$(var.paths.rc.guid)' Win64='$(var.IsX64)'>
85 <Component Id='paths.rc' Guid='$(var.paths.rc.guid)' Win64='$(var.IsX64)'>
86 <CreateFolder/>
86 <CreateFolder/>
87 <IniFile Id="ini0" Action="createLine" Directory="HGRCD" Name="Paths.rc"
87 <IniFile Id="ini0" Action="createLine" Directory="HGRCD" Name="Paths.rc"
88 Section="web" Key="cacerts" Value="[INSTALLDIR]hgrc.d\cacert.pem" />
88 Section="web" Key="cacerts" Value="[INSTALLDIR]hgrc.d\cacert.pem" />
89 </Component>
89 </Component>
90 <Component Id='cacert.pem' Guid='$(var.cacert.pem.guid)' Win64='$(var.IsX64)'>
90 <Component Id='cacert.pem' Guid='$(var.cacert.pem.guid)' Win64='$(var.IsX64)'>
91 <File Id='cacert.pem' Name='cacert.pem' Source='..\misc\cacert.pem'
91 <File Id='cacert.pem' Name='cacert.pem' Source='..\misc\cacert.pem'
92 ReadOnly='yes' KeyPath='yes'/>
92 ReadOnly='yes' KeyPath='yes'/>
93 </Component>
93 </Component>
94 </Directory>
94 </Directory>
95
95
96 </Directory>
96 </Directory>
97 </Directory>
97 </Directory>
98
98
99 <Directory Id="ProgramMenuFolder" Name="Programs">
99 <Directory Id="ProgramMenuFolder" Name="Programs">
100 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
100 <Directory Id="ProgramMenuDir" Name="Mercurial $(var.Version)">
101 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
101 <Component Id="ProgramMenuDir" Guid="$(var.ProgramMenuDir.guid)" Win64='$(var.IsX64)'>
102 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
102 <RemoveFolder Id='ProgramMenuDir' On='uninstall' />
103 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
103 <RegistryValue Root='HKCU' Key='Software\Mercurial\InstallDir' Type='string'
104 Value='[INSTALLDIR]' KeyPath='yes' />
104 Value='[INSTALLDIR]' KeyPath='yes' />
105 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
105 <Shortcut Id='UrlShortcut' Directory='ProgramMenuDir' Name='Mercurial Web Site'
106 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
106 Target='[ARPHELPLINK]' Icon="hgIcon.ico" IconIndex='0' />
107 </Component>
107 </Component>
108 </Directory>
108 </Directory>
109 </Directory>
109 </Directory>
110
110
111 <?if $(var.Platform) = "x86" ?>
111 <?if $(var.Platform) = "x86" ?>
112 <Merge Id='VCRuntime' DiskId='1' Language='1033'
112 <Merge Id='VCRuntime' DiskId='1' Language='1033'
113 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
113 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x86_msm.msm' />
114 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
114 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
115 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
115 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x86_msm.msm' />
116 <?else?>
116 <?else?>
117 <Merge Id='VCRuntime' DiskId='1' Language='1033'
117 <Merge Id='VCRuntime' DiskId='1' Language='1033'
118 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
118 SourceFile='$(var.VCRedistSrcDir)\microsoft.vcxx.crt.x64_msm.msm' />
119 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
119 <Merge Id='VCRuntimePolicy' DiskId='1' Language='1033'
120 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
120 SourceFile='$(var.VCRedistSrcDir)\policy.x.xx.microsoft.vcxx.crt.x64_msm.msm' />
121 <?endif?>
121 <?endif?>
122 </Directory>
122 </Directory>
123
123
124 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
124 <Feature Id='Complete' Title='Mercurial' Description='The complete package'
125 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
125 Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
126 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
126 <Feature Id='MainProgram' Title='Program' Description='Mercurial command line app'
127 Level='1' Absent='disallow' >
127 Level='1' Absent='disallow' >
128 <ComponentRef Id='MainExecutable' />
128 <ComponentRef Id='MainExecutable' />
129 <ComponentRef Id='distOutput' />
129 <ComponentRef Id='distOutput' />
130 <ComponentRef Id='ProgramMenuDir' />
130 <ComponentRef Id='ProgramMenuDir' />
131 <ComponentRef Id='ReadMe' />
131 <ComponentRef Id='ReadMe' />
132 <ComponentRef Id='COPYING' />
132 <ComponentRef Id='COPYING' />
133 <ComponentRef Id='mercurial.rc' />
133 <ComponentRef Id='mercurial.rc' />
134 <ComponentRef Id='mergetools.rc' />
134 <ComponentRef Id='mergetools.rc' />
135 <ComponentRef Id='paths.rc' />
135 <ComponentRef Id='paths.rc' />
136 <ComponentRef Id='cacert.pem' />
136 <ComponentRef Id='cacert.pem' />
137 <ComponentRef Id='helpFolder' />
137 <ComponentRef Id='helpFolder' />
138 <ComponentGroupRef Id='templatesFolder' />
138 <ComponentGroupRef Id='templatesFolder' />
139 <MergeRef Id='VCRuntime' />
139 <MergeRef Id='VCRuntime' />
140 <MergeRef Id='VCRuntimePolicy' />
140 <MergeRef Id='VCRuntimePolicy' />
141 </Feature>
141 </Feature>
142 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
142 <Feature Id='Locales' Title='Translations' Description='Translations' Level='1'>
143 <ComponentGroupRef Id='localeFolder' />
143 <ComponentGroupRef Id='localeFolder' />
144 <ComponentRef Id='i18nFolder' />
144 <ComponentRef Id='i18nFolder' />
145 </Feature>
145 </Feature>
146 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
146 <Feature Id='Documentation' Title='Documentation' Description='HTML man pages' Level='1'>
147 <ComponentGroupRef Id='docFolder' />
147 <ComponentGroupRef Id='docFolder' />
148 </Feature>
148 </Feature>
149 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
149 <Feature Id='Misc' Title='Miscellaneous' Description='Contributed scripts' Level='1'>
150 <ComponentGroupRef Id='contribFolder' />
150 <ComponentGroupRef Id='contribFolder' />
151 </Feature>
151 </Feature>
152 </Feature>
152 </Feature>
153
153
154 <UIRef Id="WixUI_FeatureTree" />
154 <UIRef Id="WixUI_FeatureTree" />
155 <UIRef Id="WixUI_ErrorProgressText" />
155 <UIRef Id="WixUI_ErrorProgressText" />
156
156
157 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
157 <WixVariable Id="WixUILicenseRtf" Value="contrib\wix\COPYING.rtf" />
158
158
159 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
159 <Icon Id="hgIcon.ico" SourceFile="contrib/win32/mercurial.ico" />
160
160
161 <Upgrade Id='$(var.ProductUpgradeCode)'>
161 <Upgrade Id='$(var.ProductUpgradeCode)'>
162 <UpgradeVersion
162 <UpgradeVersion
163 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
163 IncludeMinimum='yes' Minimum='0.0.0' IncludeMaximum='no' OnlyDetect='no'
164 Property='INSTALLEDMERCURIALPRODUCTS' />
164 Property='INSTALLEDMERCURIALPRODUCTS' />
165 </Upgrade>
165 </Upgrade>
166
166
167 <InstallExecuteSequence>
167 <InstallExecuteSequence>
168 <RemoveExistingProducts After='InstallInitialize'/>
168 <RemoveExistingProducts After='InstallInitialize'/>
169 </InstallExecuteSequence>
169 </InstallExecuteSequence>
170
170
171 </Product>
171 </Product>
172 </Wix>
172 </Wix>
1 NO CONTENT: file renamed from contrib/mergetools.hgrc to mercurial/default.d/mergetools.rc
NO CONTENT: file renamed from contrib/mergetools.hgrc to mercurial/default.d/mergetools.rc
General Comments 0
You need to be logged in to leave comments. Login now