Created
March 22, 2012 23:18
-
-
Save jcfr/2165416 to your computer and use it in GitHub Desktop.
The following script allows to automatically change the case of CMake script from upper to lower case.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for file in $(find . -type f -name '*\.cmake' -o -name '*\.txt' -o -name '*\.ctest') | |
do | |
echo "Processing file [$file]" | |
for cmd in $(cmake --help-command-list) | |
do | |
sed -i "s/${cmd}(/${cmd}(/gI" $file | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment