FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-docs-ja/scripts/push/upload-catalog at 3.7 · python/python-docs-ja · GitHub
python
python-docs-ja
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-docs-ja
/
scripts
/
push
/
upload-catalog
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (23 loc) · 864 Bytes
Breadcrumbs
python-docs-ja
/
scripts
/
push
/
upload-catalog
Copy path
File metadata and controls
25 lines (23 loc) · 864 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!
/bin/bash
set
-eux
#
clone an additional repository
cd
"
${BASEDIR}
"
git clone --branch
${CATALOG_BRANCH}
https://github.com/python-doc-ja/cpython-doc-catalog.git cpython-doc-catalog
mkdir -p
"
${BASEDIR}
"
/cpython-doc-catalog/Doc/locales/ja
cd
"
${BASEDIR}
"
/cpython-doc-catalog/Doc/locales/ja
ln -s
"
${BASEDIR}
"
/python-docs-ja LC_MESSAGES
ls -lF LC_MESSAGES
#
upload catalogs to python-docs-ja
cd
"
${BASEDIR}
"
/cpython-doc-catalog/Doc/locales
tx pull --force --language ja
cd
ja/LC_MESSAGES
git add
*
.po
**
/
*
.po
git status
if
[[
$(
git status --short
|
wc -l
)
==
0 ]]
;
then
echo
"
no .po file to upload
"
else
echo
"
I have .po file(s) to upload
"
git commit --message=
"
[skip ci] Update .po files
"
git push --quiet
"
git@python-docs-ja.github.com:python/python-docs-ja.git
"
${DOCS_BRANCH}
:
${DOCS_BRANCH}
fi
rm -rf
"
${BASEDIR}
"
/cpython-doc-catalog/Doc/locales/ja
Back
|
FazBrowse Home
|
New Git URL