Commit d34488eb authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: #1623: fix doxygen search bar

parent dccfd1e8
......@@ -168,10 +168,10 @@ if (BUILD_DOCUMENTATION)
add_custom_target(Documentation-doxygen
COMMAND ${DOXYGEN_EXECUTABLE} ${OTB_BINARY_DIR}/Utilities/Doxygen/doxygen.config
#COMMAND ${CMAKE_COMMAND} -E copy
# ${OTB_SOURCE_DIR}/Utilities/Doxygen/favicon.ico
# ${OTB_BINARY_DIR}/Documentation/Doxygen/html
# DEPENDS ${OTB_BINARY_DIR}/Documentation/Doxygen/Examples.dox
# fix php section delimiters for PHP 7
COMMAND ${PERL_EXECUTABLE} -i
"${OTB_SOURCE_DIR}/Utilities/Doxygen/fix_php7.pl"
"${OTB_BINARY_DIR}/Documentation/Doxygen/html/*.php"
WORKING_DIRECTORY ${OTB_BINARY_DIR}/Utilities/Doxygen
)
......
#!/usr/bin/perl
#
# Copyright (C) 2005-2018 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Transform script section declared as '<script language="php">' into '<?php'
$isInPHPSection=0;
while(<>)
{
chomp;
$line = $_;
if($line =~ s/<script language="(php|PHP)">/<\?php/)
{
$isInPHPSection = 1;
}
if($isInPHPSection)
{
if($line =~ s/<\/script>/\?>/)
{
$isInPHPSection = 0;
}
}
print $line . "\n";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment