Skip to content

Commit 5755b81

Browse files
committed
Debug make tx-en
1 parent 77a770f commit 5755b81

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

Makefile

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,19 @@ n-docs-diff: ## number of docs/ files changed since branch from master
6868
n-other-diff: ## number of files outside docs/ changed since branch from master
6969
@git diff --name-only $(DIFF_RANGE) -- ':!docs/' | wc -l | awk '{print $$1}'
7070

71-
tx-en: ## rebuild en locale strings and push to master
72-
git config --global user.email "[email protected]"
73-
git config --global user.name "Travis CI"
71+
tx-en: ## rebuild en locale strings and push to master (req: GH_TOKEN)
72+
@git config --global user.email "[email protected]"
73+
@git config --global user.name "Travis CI"
74+
@git checkout master
7475

75-
git checkout master
76+
@make -C docs clean gettext
77+
@cd docs && sphinx-intl update -p _build/gettext -l en
7678

77-
pushd docs
78-
make clean gettext
79-
sphinx-intl build -p _build/gettext -l en
80-
popd
79+
@git add docs/locale/en
80+
@git commit -m "Update en source strings for $$TRAVIS_COMMIT"
8181

82-
git add docs/locale/en
83-
git commit -m "Update en source strings for $$TRAVIS_COMMIT"
84-
85-
git remote add origin-tx https://$${GH_TOKEN}@github.com/jupyter/docker-stacks.git
86-
git push -u origin-tx master
82+
@git remote add origin-tx https://$${GH_TOKEN}@github.com/jupyter/docker-stacks.git
83+
@git push -u origin-tx master
8784

8885

8986
test/%: ## run tests against a stack

0 commit comments

Comments
 (0)