Skip to content

Commit

Permalink
do not drop condition of elseif
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 16, 2021
1 parent 98ef1e2 commit a97d58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/modernize-cmake.sh
Expand Up @@ -105,9 +105,10 @@ CTEST_TEST
CTEST_UPDATE
CTEST_UPLOAD
EOF
ELSEIF
)

echo $CMAKE_CMDS

find . -iname CMakeLists.txt | xargs \
gsed -i -r "s/\b((${CMAKE_CMDS}) *\()/\L\1/g; s/(ELSE|ENDIF|ELSEIF) *\(.*\)/\L\1()/"
gsed -i -r "s/\b((${CMAKE_CMDS}) *\()/\L\1/g; s/(ELSE|ENDIF) *\(.*\)/\L\1()/"

0 comments on commit a97d58b

Please sign in to comment.