8 my $ehrd = $ENV{
'EHIVE_ROOT_DIR'} or die
"Environment variable 'EHIVE_ROOT_DIR' not defined, please check your setup";
9 my $erd = $ENV{
'ENSEMBL_CVS_ROOT_DIR'} or die
"Environment variable 'ENSEMBL_CVS_ROOT_DIR' not defined, please check your setup";
10 my $doxy_target = $ARGV[0] or die
"Command-line argument <doxygen_target_path> not defined, please check your setup";
14 "echo 'PROJECT_NUMBER = $code_ver'",
15 "echo 'OUTPUT_DIRECTORY = $doxy_target'",
16 "echo 'EXCLUDE_PATTERNS = */_build/*'",
17 "echo 'USE_MDFILE_AS_MAINPAGE = README.md'",
18 "echo 'ENABLE_PREPROCESSING = NO'",
19 "echo 'RECURSIVE = YES'",
20 "echo 'EXAMPLE_PATTERNS = *'",
21 "echo 'HTML_TIMESTAMP = YES'",
22 "echo 'HTML_DYNAMIC_SECTIONS = YES'",
23 "echo 'GENERATE_TREEVIEW = YES'",
24 "echo 'GENERATE_LATEX = NO'",
25 "echo 'HAVE_DOT = YES'",
26 "echo 'EXTRACT_ALL = YES'",
27 "echo 'SOURCE_BROWSER = YES'",
43 print
"Regenerating $doxy_target/perl ...\n\n";
45 my $doxy_bin = `which doxygen`;
48 die
"Cannot run doxygen binary, please make sure it is installed and is in the path.\n" unless(-r $doxy_bin);
50 my $doxy_filter =
"$erd/ensembl/misc-scripts/doxygen_filter/ensembldoxygenfilter.pl";
52 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);
55 "rm -rf $doxy_target/perl",
56 "mkdir -p $doxy_target/perl",
57 "rm -f $doxy_target/ensembl-hive.tag",
59 "echo 'PROJECT_NAME = ensembl-hive'",
60 "echo 'STRIP_FROM_PATH = $ehrd'",
61 "echo 'INPUT = $ehrd'",
62 "echo 'INPUT_FILTER = $doxy_filter'",
63 "echo 'HTML_OUTPUT = perl'",
64 "echo 'EXTENSION_MAPPING = pm=C pl=C'",
65 "echo 'FILE_PATTERNS = *.pm *.pl README.md'",
66 "echo 'GENERATE_TAGFILE = $doxy_target/ensembl-hive.tag'",
67 "echo 'CLASS_DIAGRAMS = NO'",
68 "echo 'COLLABORATION_GRAPH = NO'",
72 my $full_cmd =
'('.join(
' ; ', @cmds).
") | doxygen -";
74 print
"Running the following command:\n\t$full_cmd\n\n";
82 print
"Regenerating $doxy_target/python3 ...\n\n";
84 my $doxy_bin = `which doxygen`;
86 die
"Cannot run doxygen binary, please make sure it is installed and is in the path.\n" unless(-r $doxy_bin);
88 my $doxypypy = `which doxypypy`;
90 die
"Cannot find the Doxygen Python filter 'doxypypy' in the current PATH.\n" unless -e $doxypypy;
93 "rm -rf $doxy_target/python3",
94 "mkdir -p $doxy_target/python3",
96 "echo 'PROJECT_NAME = ensembl-hive-python3'",
97 "echo 'PROJECT_NUMBER = $code_ver'",
98 "echo 'OUTPUT_DIRECTORY = $doxy_target'",
99 "echo 'STRIP_FROM_PATH = $ehrd/wrappers/python3'",
100 "echo 'INPUT = $ehrd/wrappers/python3'",
101 "echo 'HTML_OUTPUT = python3'",
102 "echo 'FILE_PATTERNS = *.py README.md'",
103 "echo 'FILTER_PATTERNS = *.py=$ehrd/scripts/dev/doxypypy_filter.sh'",
104 "echo 'EXTRACT_PRIVATE = YES'",
105 "echo 'EXTRACT_STATIC = YES'",
106 "echo 'CLASS_DIAGRAMS = YES'",
107 "echo 'CALL_GRAPH = YES'",
108 "echo 'CALLER_GRAPH = YES'",
109 "echo 'COLLABORATION_GRAPH = NO'",
113 my $full_cmd =
'('.join(
' ; ', @cmds).
") | doxygen -";
115 print
"Running the following command:\n\t$full_cmd\n\n";
132 An
internal eHive script
for regenerating the Doxygen documentation.
136 See the NOTICE file distributed with
this work
for additional information
137 regarding copyright ownership.
139 Licensed under the Apache License, Version 2.0 (the
"License"); you may not use
this file except in compliance with the License.
140 You may obtain a copy of the License at
144 Unless required by applicable law or agreed to in writing, software distributed under the License
145 is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
146 See the License
for the specific language governing permissions and limitations under the License.
150 Please subscribe to the eHive mailing list: http: