use old and new fnames

This commit is contained in:
Krishna Vedala 2020-05-29 17:37:36 -04:00
parent cbcebf30ec
commit 48bf52907f

View File

@ -26,10 +26,11 @@ jobs:
run: | run: |
for fname in $(find . -name '*.cpp' -o -name '*.h') for fname in $(find . -name '*.cpp' -o -name '*.h')
do do
old_fname="${fname}"
new_fname="$(echo -e "${fname}" | tr ' ' '_')" new_fname="$(echo -e "${fname}" | tr ' ' '_')"
new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')" new_fname="$(echo -e "${new_fname}" | tr 'A-Z' 'a-z')"
echo $new_fname echo $new_fname
git mv $fname $new_fname git mv $old_fname $new_fname
done done
git commit -am "formatting filenames $GITHUB_SHA" || true git commit -am "formatting filenames $GITHUB_SHA" || true
- name: Clang Formatter - name: Clang Formatter