Commit Graph

54 Commits

Author SHA1 Message Date
Bryan O'Sullivan
6b7c221315 makefile: don't use system hgrc when running hg in-place
This suppresses the printing of spurious error messages if a global
hgrc refers to extensions that the in-place hg can't access.
2012-11-13 09:56:09 -08:00
Adrian Buehlmann
675c7eeaef Makefile: add build_hgexe -i for local 2012-06-29 13:12:35 +02:00
Thomas Arendsen Hein
6dc228e4f6 Makefile: remove generated mercurial/__version__.py 2012-05-15 12:44:07 +02:00
Matt Mackall
f23ed05e2d Makefile: be more careful when cleaning up pure/ components
The recent introduction of pure/__init__.py causes
mercurial/__init__.py to get clobbered by make clean.
2012-04-18 11:45:50 -05:00
FUJIWARA Katsunori
4629df01c9 filemerge: create detail of internal merge tools from documentation string
this patch introduces 'internaltoolsmarker' which creates detail of
each internal merge tools from documentation string for 'hg help merge-tools'.
2012-02-12 21:38:12 +09:00
Thomas Arendsen Hein
467f4af92f Makefile: adjust example, test-merge1 is now test-merge1.t 2011-10-28 12:59:50 +02:00
Alexander Sauta
6701bbd038 i18n-ru: translated missing strings for commands, some typos corrected 2011-07-01 00:14:30 +04:00
Wagner Bruna
52ee2c38d8 i18n: extract docstrings from fileset module 2011-06-20 19:08:41 -03:00
Stephen Thorne
e9d1e0bdc6 distutils: Create MANIFEST.in instead of MANIFEST in Makefile
When running 'python setup.py sdist' many files were omitted from the resulting
tarball that are required for a complete build, including the .h file for the
inotify extension due to a python2.7+ distutils bug. This would cause 'make dist'
to fail to build a correct dist on python2.7

By building a MANIFEST.in that is the same as the old MANIFEST with 'include'
at the start of each line will cause a correct MANIFEST to be built and used
by distutils.
2011-06-09 10:15:24 +10:00
Martin Geisler
5d355b29d6 Makefile: remove pure modules on clean 2011-05-13 11:26:29 +02:00
Johan Euphrosine
75a5be1c2e add make check: tests rule 2011-05-02 09:50:21 +02:00
Matt Mackall
4dbec2c466 build: don't delete precious version information on 'make clean'
setup.py rebuilds version information if it's locally available,
regardless if file already exists.
2010-12-08 11:18:26 -06:00
Wagner Bruna
0fe36cf09d i18n: extract docstrings from revset module 2010-10-26 23:07:14 -02:00
Martin Geisler
b6f1ee0482 Makefile: var for documentation files 2010-10-23 16:54:45 +02:00
Martin Geisler
6943ff68e7 Makefile: remove underscore in var name 2010-10-23 16:53:25 +02:00
Wagner Bruna
8f7ee64a82 i18n: extract comments marked for translator hints
Comments marked with "i18n:", like:

  # i18n: do not translate the field names
  msg = _("Valid entries for the format field are topic, bar, number.")

will become available for translators in the .po files:

  #. i18n: do not translate the field names
  msgid "Valid entries for the format field are topic, bar, number."
  msgstr ""
2010-10-21 11:45:02 -02:00
Brodie Rao
7d5a1c7775 Makefile: remove the build folder manually
Given a system Python version of 2.6, the following won't clean up build:

  $ make local PYTHON=python2.7
  $ make clean

Distutils only cleans up build subdirectories for the current Python
version.

This patch cleans up the build folder even if PYTHON=python2.7 isn't
specified to clean.
2010-09-25 19:47:45 -05:00
Brodie Rao
ba8e13497a Makefile: remove all .so files during clean
This ensures .so files in hgext are cleaned up.
2010-09-25 19:38:27 -05:00
Wagner Bruna
3eefab1b9b i18n: translate each paragraph separately
Makes translation work easier by reducing message sizes and avoiding
invalidating whole messages on small changes or additions to the
original text.
2010-04-06 22:30:50 -03:00
Dévai Tamás
e12c5e6824 Respect the DESTDIR variable during 'make install'
The DESTDIR variable used to tell 'make install' an alternate system root
to install the software to. Since setup.py supports the same via its --root
parameter, it's easy to make life easier for many packagers.
2010-04-16 23:59:43 +02:00
Martin Geisler
19729a94cb Makefile: added instructions on how to override PREFIX 2009-12-23 23:28:53 +01:00
Martin Geisler
1ec2086f5b Makefile: update "make clean" target after 0e00643abaf7 2009-12-14 23:14:50 +01:00
Martin Geisler
848461c4a9 Makefile: help/ was moved in 0e00643abaf7 update paths to match 2009-12-03 22:54:33 +01:00
Martin Geisler
524b665b54 help: move help topics from mercurial/help.py to help/*.txt
The help topics are loaded on demand so we wont hit the disk unless we
really have to.
2009-10-04 09:59:13 +02:00
Martin Geisler
73aa0f7c81 Makefile: remove non-default wrapping of hg.pot strings 2009-07-26 02:14:30 +02:00
Martin Geisler
e2bd1b593f Makefile: wrap hg.pot strings at 82 chars
By default, xgettext will wrap strings at 79 characters. This width
includes the two double-quotes and the '\n' added. Our strings are now
wrapped at 78 characters and a line can therefore be up to 82
characters wide in the .po file.

Setting the width to 82 characters ensures that xgettext does no silly
wrapping on our already-wrapped strings while still wrapping long
one-liners at 82 characters.
2009-07-07 23:54:42 +02:00
Martin Geisler
ded47ba985 Makefile: do not create i18n/, it is already there 2009-05-26 19:51:22 +02:00
Martin Geisler
b205b95666 i18n: accurately generate hg.pot 2009-05-21 23:43:13 +02:00
Greg Ward
83279aa18a Makefile: fix grammar in comment 2009-05-12 10:03:36 -04:00
Martin Geisler
17001eef4e Makefile: fixed comment 2009-05-02 12:10:38 +02:00
Martin Geisler
e0ae3d3d5f Makefile: add more meta data to hg.pot 2009-05-02 11:44:57 +02:00
Tobias Bell
afe3a2b645 enhance Makefile for language translators
To update a po-file just do 'make i18n/xx.po'. No other po-file will
be touched.
2009-03-26 08:07:28 +01:00
Brodie Rao
0f571034a3 Makefile: remove locale folder during clean 2009-02-17 18:47:28 -05:00
Martin Geisler
874562649b i18n: extract strings with xgettext
The xgettext program knows about Python string formatting and will
mark messages with a special "#, python-format" comment in the hg.pot
file. When msgfmt compiles the file, it can check these messages to
ensure that the translated string uses the same conversion specifiers
as the original string.

The pygettext program is still used to extract the docstrings.
2009-01-25 21:31:54 +01:00
Martin Geisler
80b277c7ef use PURE option in Makefile 2009-01-24 01:47:36 +01:00
Martin Geisler
10cca14739 i18n: sort by file when generating hg.pot
This will make the order more stable and give smaller patches when
translations merge in new and deleted strings from the hg.pot file.
2009-01-25 12:33:47 +01:00
Martin Geisler
f6d8487386 i18n: make local now builds .mo files 2009-01-15 20:23:18 +01:00
Martin Geisler
12b2d519d0 i18n: let Makefile generate i18n/hg.pot
The target update-pot extracts strings using pygettext and updates the
i18n/hg.pot file. The translators can then use msgmerge to merge the
new strings in hg.pot with their xx.po file when they want to.

The setup.py file now includes files under both templates/ and i18n/
as data files.
2009-01-15 00:10:54 +01:00
Markus F.X.J. Oberhumer
5460408a1e Makefile: remove *.pyd files on "make clean". 2007-06-25 14:46:20 +02:00
Markus F.X.J. Oberhumer
b7dfc7940e Makefile: change "make local" to build a fully working local version. 2007-06-25 14:46:20 +02:00
Benoit Boissinot
3e0275e2f8 add possibility to pass flags when testing with the Makefile 2006-12-26 03:11:37 +01:00
Benoit Boissinot
253a9af902 fix MANIFEST generation 2006-12-12 11:39:05 +01:00
Matt Mackall
9403306d21 Make make dist a bit quieter 2006-12-10 19:20:35 -06:00
Matt Mackall
69037db249 Automatically build MANIFEST for make dist 2006-12-10 19:16:38 -06:00
Sascha Wilde
7730ef1ab7 Split installation targets into install-bin and install-doc.
install-bin will only install the program, and install-doc will install
the documentation.  The main install target still installs both.
2006-06-27 09:57:06 +02:00
Thomas Arendsen Hein
2fe1d1ce64 Just using 'make' now shows help. 'make all' doesn't perform inplace build. 2006-05-10 18:53:32 +02:00
Thomas Arendsen Hein
bd197a81db New make targets:
local: build extensions inplace (the former "all" target")
all: "local" (for people who expect this) and build everything else
install: install pre-built things (so root doesn't have to write to $HOME)
install-home: use setup.py's --home option instead of --prefix
2006-05-09 18:03:15 +02:00
Thomas Arendsen Hein
3a7a2777d1 New make target "dist-notests" to create tarballs without running tests first. 2006-05-09 17:21:53 +02:00
wilde@trapperkeeper.sha-bang.de
5d9b2c557e Added install target. 2006-05-09 17:05:49 +02:00
Stephen Darnell
fb04fe7b4b Delete the shell version of run-tests
Use the python version instead
2006-05-04 15:47:18 -07:00