Commit Graph

65 Commits

Author SHA1 Message Date
Augie Fackler
4f3c51dea3 setup: specify --prefix="" for install-home-bin to avoid badness with defaults
Sometimes (I'm not sure when) setup.py gets a default value for
--prefix, which breaks --home. This fixes that for me.
2014-02-03 02:09:46 -05:00
Simon Heimberg
4160576860 Makefile: hg.pot depends on the scripts generating it
This is convenient when editing this scripts. And translators will get updated
translation files even if nothing else has changed.
2013-11-17 20:16:14 +01:00
Matt Mackall
ccdc2e59b8 makefile: add $ to environment variables in help message 2014-01-23 14:31:05 -06:00
Simon Heimberg
30b80bb630 Makefile: temporary copy of hg.pot is hg.pot.tmp instead of hg.pot~
The file ending of temporary files for generating XX.po has been changed to
.tmp (from ~). Use the same ending when generating hg.pot.
2013-11-17 12:18:26 +01:00
Simon Heimberg
e2f8f71e76 Makefile: fix po file updating by using same file name everywhere
The update is done on a temporary file since d6abb3586946. The name of this
file was first XX.po~ and has been changed to XX.po.tmp in all except of one
place. Do this now.
2013-11-17 12:17:55 +01:00
Simon Heimberg
f2d4dbb37b Makefile: intermediate steps work with temporary copy of hg.pot
In case of abortion or a failing step, the target file remains untouched
instead of being in an intermediate state.
2013-11-05 09:43:26 +01:00
Matt Mackall
1f8ae60dec make: restrict recursion in make clean 2013-11-14 17:17:44 -06:00
Simon Heimberg
31f38eee9f Makefile: do update on a temporary copy of a po file
This avoids having a half completed file (with a new timestamp) when msgmerge
has failed.
2013-11-05 09:43:36 +01:00
Takumi IINO
c57d1116da doc: make i18n man and html
Allow overwrite LANGUAGE and LC_ALL make variables, for make i18n man and html.
After this patch, we can make i18n man and html by following command:

  $ make clean all LANGUAGE=ja
2013-07-03 21:50:20 +09:00
Benoit Boissinot
957d1fe448 check-code: add Makefile target to run check-code 2013-02-09 15:57:04 +01:00
Bryan O'Sullivan
66236952ea makefile: allow local builds to work on windows/mingw32 2012-12-11 13:44:00 -08:00
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