Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pygeoip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pygeoip
Commits
0dea913e
Commit
0dea913e
authored
Jul 16, 2013
by
William Tisäter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pandoc optional
parent
6b726b18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
build.sh
+8
-10
No files found.
build.sh
View file @
0dea913e
#!/bin/bash
function
error
{
echo
"Error:
$1
"
1>&2
exit
1
}
function
warning
{
echo
"Warning:
$1
"
;
}
function
error
{
echo
"Error:
$1
"
1>&2
;
exit
1
;
}
if
[
-z
$(
which pandoc
)
]
;
then
error
"Missing pandoc binary"
fi
if
[
-z
$(
which virtualenv
)
]
;
then
if
[
-z
"
$(
virtualenv
--version
)
"
]
;
then
error
"Missing virtualenv binary"
fi
...
...
@@ -21,5 +15,9 @@ fi
venv/bin/tox
||
error
"tox failed"
venv/bin/epydoc
--config
=
epydoc.ini
--no-private
||
error
"epydoc failed"
pandoc
-f
markdown
-t
rst
-o
README.rst README.md
||
error
"pandoc failed"
if
[
-z
"
$(
pandoc
--version
)
"
]
;
then
warning
"Skipping Markdown to reStructuredText translation"
else
pandoc
-f
markdown
-t
rst
-o
README.rst README.md
||
error
"pandoc failed"
fi
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