Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b70290a7
Commit
b70290a7
authored
Oct 28, 2012
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update current version of the "dailybuild" script.
parent
5fb657df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
Doc/tools/dailybuild.py
Doc/tools/dailybuild.py
+23
-15
No files found.
Doc/tools/dailybuild.py
View file @
b70290a7
...
...
@@ -5,12 +5,12 @@
#
# Usages:
#
# dailybuild.py
# dailybuild.py
[-q]
#
# without any arguments builds docs for all branches configured in the global
# BRANCHES value.
# BRANCHES value.
-q selects "quick build", which means to build only HTML.
#
# dailybuild.py [-d] <checkout> <target>
# dailybuild.py [-
q] [-
d] <checkout> <target>
#
# builds one version, where <checkout> is an SVN checkout directory of the
# Python branch to build docs for, and <target> is the directory where the
...
...
@@ -39,21 +39,23 @@ BRANCHES = [
]
def
build_one
(
checkout
,
target
,
isdev
):
def
build_one
(
checkout
,
target
,
isdev
,
quick
):
print
'Doc autobuild started in %s'
%
checkout
os
.
chdir
(
checkout
)
print
'Running hg pull --update'
os
.
system
(
'/usr/local/bin/hg pull --update'
)
print
'Running make autobuild'
if
os
.
WEXITSTATUS
(
os
.
system
(
'cd Doc; make autobuild-%s'
%
(
isdev
and
'dev'
or
'stable'
)))
==
2
:
maketarget
=
'autobuild-'
+
(
'html'
if
quick
else
(
'dev'
if
isdev
else
'stable'
))
if
os
.
WEXITSTATUS
(
os
.
system
(
'cd Doc; make %s'
%
maketarget
))
==
2
:
print
'*'
*
80
return
print
'Copying HTML files
'
print
'Copying HTML files
to %s'
%
target
os
.
system
(
'cp -a Doc/build/html/* %s'
%
target
)
print
'Copying dist files'
os
.
system
(
'mkdir -p %s/archives'
%
target
)
os
.
system
(
'cp -a Doc/dist/* %s/archives'
%
target
)
if
not
quick
:
print
'Copying dist files'
os
.
system
(
'mkdir -p %s/archives'
%
target
)
os
.
system
(
'cp -a Doc/dist/* %s/archives'
%
target
)
print
'Finished'
print
'='
*
80
...
...
@@ -67,15 +69,21 @@ def usage():
if
__name__
==
'__main__'
:
try
:
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'd'
)
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'd
q
'
)
except
getopt
.
error
:
usage
()
if
opts
and
not
args
:
quick
=
devel
=
False
for
opt
,
_
in
opts
:
if
opt
==
'-q'
:
quick
=
True
if
opt
==
'-d'
:
devel
=
True
if
devel
and
not
args
:
usage
()
if
args
:
if
len
(
args
)
!=
2
:
usage
()
build_one
(
args
[
0
],
args
[
1
],
bool
(
opts
)
)
build_one
(
args
[
0
],
args
[
1
],
devel
,
quick
)
else
:
for
branch
in
BRANCHES
:
build_one
(
*
branch
)
for
checkout
,
dest
,
devel
in
BRANCHES
:
build_one
(
checkout
,
dest
,
devel
,
quick
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment