• Kitware Robot's avatar
    Remove CMake-language block-end command arguments · 9db31162
    Kitware Robot authored
    Ancient versions of CMake required else(), endif(), and similar block
    termination commands to have arguments matching the command starting the
    block.  This is no longer the preferred style.
    
    Run the following shell code:
    
    for c in else endif endforeach endfunction endmacro endwhile; do
        echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
    done >convert.sed &&
    git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
    egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
    egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
    xargs -0 sed -i -f convert.sed &&
    rm convert.sed
    9db31162
Name
Last commit
Last update
..
Executable Loading commit data...
External Loading commit data...
Library Loading commit data...
in_interface Loading commit data...
include Loading commit data...
CMakeLists.txt Loading commit data...
foo.f Loading commit data...
hello.f Loading commit data...
mainc.c Loading commit data...
maincxx.c Loading commit data...
myc.c Loading commit data...
mycxx.cxx Loading commit data...
mysub.f Loading commit data...
test_module_implementation.f90 Loading commit data...
test_module_interface.f90 Loading commit data...
test_module_main.f90 Loading commit data...
test_preprocess.F90 Loading commit data...
test_use_in_comment_fixedform.f Loading commit data...
test_use_in_comment_freeform.f90 Loading commit data...
testf.f Loading commit data...
world.f Loading commit data...
world_gnu.def Loading commit data...
world_icl.def Loading commit data...