Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
inf2_eedi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Piotr Maślanka
inf2_eedi
Commits
aa4abe27
There was a problem fetching the latest pipeline status.
Commit
aa4abe27
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
2b41544c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#2374
failed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.py
+4
-10
4 additions, 10 deletions
build.py
with
4 additions
and
10 deletions
build.py
+
4
−
10
View file @
aa4abe27
...
...
@@ -3,7 +3,6 @@ from __future__ import print_function
import
json
,
sys
import
os.path
def
readin
(
path
,
func
=
lambda
x
:
x
,
orelse
=
None
):
if
os
.
path
.
exists
(
path
):
with
open
(
path
,
'
rb
'
)
as
fin
:
...
...
@@ -12,6 +11,8 @@ def readin(path, func=lambda x: x, orelse=None):
return
orelse
if
__name__
==
'
__main__
'
:
header_bin
=
readin
(
'
src/header.md
'
)
footer_bin
=
readin
(
'
src/footer.md
'
)
for
lab_name
in
(
'
lab
'
+
str
(
x
)
for
x
in
xrange
(
7
,
start
=
1
)):
dist_lp
=
'
dist/
'
+
lab_name
+
'
/
'
...
...
@@ -21,14 +22,8 @@ if __name__ == '__main__':
print
(
'
Aborting, no src file
'
)
sys
.
exit
()
header_bin
=
readin
(
'
src/header.md
'
)
footer_bin
=
readin
(
'
src/footer.md
'
)
# Make directories
try
:
os
.
makedirs
(
dist_lp
)
except
OSError
:
pass
os
.
system
(
'
mkdir -p
'
+
dist_lp
)
# Load data
data
=
readin
(
'
src/
'
+
lab_name
+
'
.json
'
,
json
.
load
,
orelse
=
[{}])
...
...
@@ -49,5 +44,4 @@ if __name__ == '__main__':
labout
.
write
(
plab
.
encode
(
'
utf8
'
))
labout
.
write
(
footer_bin
)
if
os
.
system
((
'
pandoc %s%s.md -s -o %s%s.pdf
'
)
%
(
dist_lp
,
ex_no
,
dist_lp
,
ex_no
))
!=
0
:
sys
.
exit
(
1
)
os
.
system
((
'
pandoc %s%s.md -s -o %s%s.pdf
'
)
%
(
dist_lp
,
ex_no
,
dist_lp
,
ex_no
))
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