Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
15895d32a3f8
Commit
15895d32a3f8
authored
4 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
copy doc from language aware module too
parent
fdd20e0d6faf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_documentation
+11
-3
11 additions, 3 deletions
create_documentation
with
11 additions
and
3 deletions
create_documentation
+
11
−
3
View file @
15895d32
...
...
@@ -67,8 +67,8 @@
has_doc
=
True
echo
${
YELLOW
}
INFO
${
RESET
}
- Makefile found
in
$dir
/
$module_path
/
$doc_dir
pushd
$doc_dir
# TODO read languages value from Makefile
# TODO read languages value from Makefile
(at least available ones)
for
language
in
$languages
;
do
make
$format
LANGUAGE
=
${
language
}
BUILDDIR
=
_build
if
[[
$?
-eq
0
]]
;
then
dest_dir
=
$out_dir
/
$module
/
$language
/
$branch
...
...
@@ -71,6 +71,6 @@
for
language
in
$languages
;
do
make
$format
LANGUAGE
=
${
language
}
BUILDDIR
=
_build
if
[[
$?
-eq
0
]]
;
then
dest_dir
=
$out_dir
/
$module
/
$language
/
$branch
echo
${
GREEN
}
INFO
${
RESET
}
- Documentation generation
done for
$dir
/
$module_path
/
$doc_dir
, copy to
$dest_dir
echo
${
GREEN
}
OK
${
RESET
}
- Documentation generation
done for
$dir
/
$module_path
/
$doc_dir
, copy to
$dest_dir
mkdir
-p
$dest_dir
...
...
@@ -76,5 +76,13 @@
mkdir
-p
$dest_dir
cp
-r
_build/
$format
/.
$dest_dir
if
[[
-d
"_build/
$format
/
$language
"
]]
;
then
echo
"
${
YELLOW
}
INFO
${
RESET
}
- found _build/
$format
/
$language
/, copying from there"
cp
--archive
--recursive
"_build/
$format
/
$language
/."
"
$dest_dir
"
else
# this is only because some modules Makefile is not up to date
echo
"
${
YELLOW
}
INFO
${
RESET
}
- no _build/
$format
/
$language
/ found, copying from _build/
$format
/"
cp
--archive
--recursive
"_build/
$format
/."
"
$dest_dir
"
fi
else
echo
${
RED
}
ERROR
${
RESET
}
- Documentation generation failed
for
$dir
/
$module_path
/
$doc_dir
((
module_error++
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment