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
63cf5d2ab703
Commit
63cf5d2ab703
authored
8 years ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
[create_documentation] use branch name (compatible with hg/git)
parent
d9b0b4161f40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_documentation
+10
-4
10 additions, 4 deletions
create_documentation
with
10 additions
and
4 deletions
create_documentation
+
10
−
4
View file @
63cf5d2a
...
...
@@ -38,8 +38,11 @@
make
-e
SPHINXOPTS
=
-Dlanguage
=
${
language
}
$format
# TODO read value from Makefile
builddir
=
_build
# TODO read value from hg/git
branch
=
default
if
[
-e
".git"
]
;
then
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
elif
[
-e
".hg"
]
;
then
branch
=
"
$(
hg
id
-b
)
"
fi
dest_dir
=
$out_dir
/
$project_name
/
$language
/
$branch
if
[[
$?
-eq
0
]]
;
then
echo
"
${
YELLOW
}
INFO
${
RESET
}
- Documentation generation done for
$doc_dir
(superproject), copy to
$dest_dir
"
...
...
@@ -68,8 +71,11 @@
make
-e
SPHINXOPTS
=
-Dlanguage
=
${
language
}
$format
# TODO read value from Makefile
builddir
=
_build
# TODO read value from hg/git
branch
=
default
if
[
-e
".git"
]
;
then
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
elif
[
-e
".hg"
]
;
then
branch
=
"
$(
hg
id
-b
)
"
fi
dest_dir
=
$out_dir
/
$module
/
$language
/
$branch
if
[[
$?
-eq
0
]]
;
then
echo
${
YELLOW
}
INFO
${
RESET
}
- Documentation generation
done for
$dir
/
$module
/
$doc_dir
, copy to
$dest_dir
...
...
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