8000 Makefile: Fix .tx/config patch · python/python-docs-pt-br@3d04303 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d04303

Browse files
committed
Makefile: Fix .tx/config patch
1 parent 11990b4 commit 3d04303

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ tx-config: pot tx-install
109109
--pot-dir pot
110110
@mkdir -p .tx
111111
@sed $(CPYTHON_DIR)/$(LOCALE_DIR)/.tx/config \
112-
-e "s|^file_filter = .*|&\nx&|;" \
113-
-e "s|^source_file = pot/|source_file = $(LOCALE_RELATIVE)/pot/|" \
112+
-e "s|^file_filter *= .*|&\nx&|;" \
113+
-e "s|= pot/|= ../../pot/|" \
114114
> .tx/config
115115
@sed -i .tx/config \
116-
-e "s|^xfile_filter = ./<lang>/LC_MESSAGES/|trans.$(LANGUAGE) = |;"
116+
-e "s|^xfile_filter *= ./<lang>/LC_MESSAGES/|trans.$(LANGUAGE) = |;"
117117

118118

119119
# tx-install: Install Transifex CLI client if not installed yet. Installs

0 commit comments

Comments
 (0)
0