rename .cc files to .cpp

This commit is contained in:
Krishna Vedala 2020-05-29 22:20:34 -04:00
parent 03d7fa8b67
commit b285d09d6a

View File

@ -26,7 +26,7 @@ jobs:
- name: Filename Formatter
run: |
IFS=$'\n'
for fname in `find . -type f -name '*.cpp' -o -name '*.h'`
for fname in `find . -type f -name '*.cpp' -o -name '*.cc' -o -name '*.h'`
do
echo "${fname}"
new_fname=`echo ${fname} | tr ' ' '_'`
@ -35,6 +35,8 @@ jobs:
echo " ${new_fname}"
new_fname=`echo ${new_fname} | tr '-' '_'`
echo " ${new_fname}"
new_fname=${new_fname/.cc/.cpp}
echo " ${new_fname}"
if [ ${fname} != ${new_fname} ]
then
echo " ${fname} --> ${new_fname}"