Skip to content
Snippets Groups Projects
Commit e3e1ba53 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

Merge branch '1623-doxy-search-php' into 'develop'

BUG: #1623: fix doxygen search bar

Closes #1623

See merge request orfeotoolbox/otb!279
parents 56ead2e5 d34488eb
Branches
Tags
No related merge requests found
...@@ -168,10 +168,10 @@ if (BUILD_DOCUMENTATION) ...@@ -168,10 +168,10 @@ if (BUILD_DOCUMENTATION)
add_custom_target(Documentation-doxygen add_custom_target(Documentation-doxygen
COMMAND ${DOXYGEN_EXECUTABLE} ${OTB_BINARY_DIR}/Utilities/Doxygen/doxygen.config COMMAND ${DOXYGEN_EXECUTABLE} ${OTB_BINARY_DIR}/Utilities/Doxygen/doxygen.config
#COMMAND ${CMAKE_COMMAND} -E copy # fix php section delimiters for PHP 7
# ${OTB_SOURCE_DIR}/Utilities/Doxygen/favicon.ico COMMAND ${PERL_EXECUTABLE} -i
# ${OTB_BINARY_DIR}/Documentation/Doxygen/html "${OTB_SOURCE_DIR}/Utilities/Doxygen/fix_php7.pl"
# DEPENDS ${OTB_BINARY_DIR}/Documentation/Doxygen/Examples.dox "${OTB_BINARY_DIR}/Documentation/Doxygen/html/*.php"
WORKING_DIRECTORY ${OTB_BINARY_DIR}/Utilities/Doxygen 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";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment