Skip to content
Prev Previous commit
Next Next commit
Makefile: avoid OLDPWD in tx-config
Instead of changing dir to OLDPWD in an incorrect way, now using mkdir and sed to create .tx/config
  • Loading branch information
rffontenelle committed May 10, 2020
commit 7a81b2ac52e9efeab75e784f9fa3655c57e994f7
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,12 @@ tx-config: pot
--locale-dir . \
--pot-dir pot;

cd $(OLDPWD)
mv $(CPYTHON_WORKDIR)/Doc/locales/.tx/config .tx/config

sed -i .tx/config \
mkdir -p .tx
sed $(CPYTHON_WORKDIR)/Doc/locales/.tx/config \
-e '/^source_file/d' \
-e 's|<lang>/LC_MESSAGES/||' \
-e "s|^file_filter|trans.$(LANGUAGE)|"
-e "s|^file_filter|trans.$(LANGUAGE)|" \
> .tx/config


# pot: After running "setup" target, run a cpython Makefile's target
Expand Down