Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit835ae0d

Browse files
committed
Hard-linking po files instead of creating symbolic link of the whole directory when building
1 parentdacd52d commit835ae0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
CPYTHON_CLONE := ../cpython/
1919
SPHINX_CONF :=$(CPYTHON_CLONE)/Doc/conf.py
2020
LANGUAGE := zh_TW
21+
LC_MESSAGES :=$(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
2122
VENV := ~/.venvs/python-docs-i18n/
2223
PYTHON :=$(shell which python3)
2324
MODE := autobuild-dev-html
@@ -27,8 +28,9 @@ JOBS = 1
2728

2829
.PHONY: all
2930
all:$(VENV)/bin/sphinx-build$(VENV)/bin/blurb$(SPHINX_CONF)
30-
mkdir -p$(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/
31-
ln -nfs$(shell pwd)$(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
31+
mkdir -p$(LC_MESSAGES)
32+
fordirnamein$$(find. -name'*.po'| xargs -n1 dirname| sort -u| grep -v'^\.$$');do mkdir -p$(LC_MESSAGES)/$$dirname;done
33+
forfilein*.po*/*.po;do ln -f$$file$(LC_MESSAGES)/$$file;done
3234
.$(VENV)/bin/activate;$(MAKE) -C$(CPYTHON_CLONE)/Doc/ SPHINXOPTS='-j$(JOBS) -D locale_dirs=locales -D language=$(LANGUAGE) -D gettext_compact=0'$(MODE)
3335

3436

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp