Skip to content

Commit 5762a20

Browse files
committed
---
yaml --- r: 148270 b: refs/heads/try2 c: a599d89 h: refs/heads/master v: v3
1 parent 9ae751a commit 5762a20

File tree

123 files changed

+14617
-5700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+14617
-5700
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: faa0b5aa618b19d365230329746a11ab17da7847
8+
refs/heads/try2: a599d897fcc2c66c6ad4462d3048873bd0ed87b9
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export CFG_ENABLE_MINGW_CROSS
417417
export CFG_PREFIX
418418
export CFG_LIBDIR
419419
export CFG_RUSTLIBDIR
420-
export LIBDIR_RELATIVE
420+
export CFG_LIBDIR_RELATIVE
421421

422422
######################################################################
423423
# Subprograms
@@ -435,7 +435,7 @@ define SREQ
435435
# Destinations of artifacts for the host compiler
436436
HROOT$(1)_H_$(3) = $(3)/stage$(1)
437437
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
438-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(LIBDIR_RELATIVE)
438+
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)
439439

440440
# Destinations of artifacts for target architectures
441441
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)

branches/try2/configure

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,13 @@ valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
401401
# On windows we just store the libraries in the bin directory because
402402
# there's no rpath
403403
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
404-
LIBDIR_RELATIVE=lib
404+
CFG_LIBDIR_RELATIVE=lib
405405
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
406406
then
407-
LIBDIR_RELATIVE=bin
407+
CFG_LIBDIR_RELATIVE=bin
408408
fi
409409

410-
valopt libdir "${CFG_PREFIX}/${LIBDIR_RELATIVE}" "install libraries"
410+
valopt libdir "${CFG_PREFIX}/${CFG_LIBDIR_RELATIVE}" "install libraries"
411411
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
412412

413413
# Validate Options
@@ -771,16 +771,16 @@ do
771771
make_dir $h/stage$i/bin
772772

773773
# host lib dir
774-
make_dir $h/stage$i/$LIBDIR_RELATIVE
774+
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE
775775

776776
# host test dir
777777
make_dir $h/stage$i/test
778778

779779
# target bin dir
780-
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
780+
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
781781

782782
# target lib dir
783-
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
783+
make_dir $h/stage$i/$CFG_LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
784784
done
785785
done
786786

@@ -795,7 +795,6 @@ do
795795
make_dir $h/test/codegen
796796
make_dir $h/test/doc-tutorial
797797
make_dir $h/test/doc-guide-ffi
798-
make_dir $h/test/doc-guide-runtime
799798
make_dir $h/test/doc-guide-macros
800799
make_dir $h/test/doc-guide-lifetimes
801800
make_dir $h/test/doc-guide-pointers
@@ -1037,7 +1036,7 @@ putvar CFG_TARGET
10371036
putvar CFG_C_COMPILER
10381037
putvar CFG_LIBDIR
10391038
putvar CFG_RUSTLIBDIR
1040-
putvar LIBDIR_RELATIVE
1039+
putvar CFG_LIBDIR_RELATIVE
10411040
putvar CFG_DISABLE_MANAGE_SUBMODULES
10421041
putvar CFG_ANDROID_CROSS_PATH
10431042
putvar CFG_MINGW32_CROSS_PATH

branches/try2/doc/README.md

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ source code.
88
the Markdown docs (reference manual, tutorials, etc.) distributed with
99
this git repository.
1010

11-
[po4a](http://po4a.alioth.debian.org/) is required for generating translated
12-
docs from the master (English) docs.
13-
14-
[GNU gettext](http://www.gnu.org/software/gettext/) is required for managing
15-
the translation data.
16-
1711
# Building
1812

1913
To generate all the docs, just run `make docs` from the root of the repository.
@@ -44,43 +38,3 @@ http://johnmacfarlane.net/pandoc/README.html#pandocs-markdown
4438

4539
A nice quick reference (for non-pandoc markdown) is at:
4640
http://kramdown.rubyforge.org/quickref.html
47-
48-
# Notes for translators
49-
50-
Notice: The procedure described below is a work in progress. We are working on
51-
translation system but the procedure contains some manual operations for now.
52-
53-
To start the translation for a new language, see po4a.conf at first.
54-
55-
To generate .pot and .po files, do something like:
56-
57-
~~~~
58-
po4a --copyright-holder="The Rust Project Developers" \
59-
--package-name="Rust" \
60-
--package-version="0.10-pre" \
61-
-M UTF-8 -L UTF-8 \
62-
po4a.conf
63-
~~~~
64-
65-
(the version number must be changed if it is not 0.10-pre now.)
66-
67-
Now you can translate documents with .po files, commonly used with gettext. If
68-
you are not familiar with gettext-based translation, please read the online
69-
manual linked from http://www.gnu.org/software/gettext/ . We use UTF-8 as the
70-
file encoding of .po files.
71-
72-
When you want to make a commit, do the command below before staging your
73-
change:
74-
75-
~~~~
76-
for f in doc/po/**/*.po; do
77-
msgattrib --translated $f -o $f.strip
78-
if [ -e $f.strip ]; then
79-
mv $f.strip $f
80-
else
81-
rm $f
82-
fi
83-
done
84-
~~~~
85-
86-
This removes untranslated entries from .po files to save disk space.

0 commit comments

Comments
 (0)