Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ensembl-gh-mirror
ensembl-hive
Commits
ddad924b
Commit
ddad924b
authored
10 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
check that doxygen is installed and is not too fresh
parent
3272a448
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
scripts/make_docs.pl
+15
-4
15 additions, 4 deletions
scripts/make_docs.pl
with
15 additions
and
4 deletions
scripts/make_docs.pl
+
15
−
4
View file @
ddad924b
...
...
@@ -29,12 +29,12 @@ sub generate_hive_schema_desc {
my
$sql2html
=
"
$erd
/ensembl-production/scripts/sql2html.pl
";
die
"
Cannot find '
$sql2html
', please make sure ensembl-production API is intalled properly
\n
"
unless
(
-
r
$sql2html
);
die
"
Cannot find '
$sql2html
', please make sure ensembl-production API is intalled properly
.
\n
"
unless
(
-
r
$sql2html
);
my
@cmds
=
(
"
perl
$sql2html
-i
$ehrd
/sql/tables.mysql -d Hive -intro
$ehrd
/docs/hive_schema.inc -sort_headers 0 -sort_tables 0 -o
$ehrd
/docs/tmp_hive_schema.html
",
"
(head -n 3
$ehrd
/docs/tmp_hive_schema.html ; cat
$ehrd
/docs/hive_schema.hdr ; tail -n +4
$ehrd
/docs/tmp_hive_schema.html) >
$ehrd
/docs/hive_schema.html
",
"
rm
$ehrd
/docs/tmp_hive_schema.html
",
"
rm
$ehrd
/docs/tmp_hive_schema.html
",
# remove the non-patched version
);
foreach
my
$cmd
(
@cmds
)
{
...
...
@@ -53,7 +53,7 @@ sub generate_docs_scripts {
"
find
$ehrd
/docs/scripts -type f -not -name index.html | xargs rm
",
# delete all but index.html
"
cd
$ehrd
/scripts
",
"
for f in *.pl ; do pod2html --noindex --title=
\$
f
\$
f >
$ehrd
/docs/scripts/`echo
\$
f | sed 's/pl
\$
/html/'` ; done
",
"
rm pod2htm?.tmp
",
# clean up after pod2html
"
rm pod2htm?.tmp
",
# clean up after pod2html
);
foreach
my
$cmd
(
@cmds
)
{
...
...
@@ -68,9 +68,20 @@ sub generate_docs_doxygen {
print
"
Regenerating
$ehrd
/docs/doxygen ...
\n\n
";
my
$doxy_bin
=
`
which doxygen
`;
chomp
$doxy_bin
;
die
"
Cannot run doxygen binary, please make sure it is installed and is in the path.
\n
"
unless
(
-
r
$doxy_bin
);
my
$doxy_ver
=
`
$doxy_bin
--version
`;
chomp
$doxy_ver
;
my
$doxy_intver
=
sprintf
("
%d%03d%03d
",
split
(
/\./
,
$doxy_ver
)
);
die
"
The doxygen I found (
$doxy_bin
) being version
$doxy_ver
is not supported, please downgrade to at most 1.8.6
\n
"
if
(
$doxy_intver
>
1008006
);
my
$doxy_filter
=
"
$erd
/ensembl/misc-scripts/doxygen_filter/ensembldoxygenfilter.pl
";
die
"
Cannot run the Ensembl-Doxygen Perl filter at '
$doxy_filter
', please make sure Ensembl core API is intalled properly
\n
"
unless
(
-
x
$doxy_filter
);
die
"
Cannot run the Ensembl-Doxygen Perl filter at '
$doxy_filter
', please make sure Ensembl core API is intalled properly
.
\n
"
unless
(
-
x
$doxy_filter
);
my
@cmds
=
(
"
rm -rf
$ehrd
/docs/doxygen
",
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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