moved scripts into subdirectory

This commit is contained in:
Daniel Mensinger
2019-07-01 12:37:18 +02:00
parent 3c64b3da97
commit 2a2a34601c
4 changed files with 12 additions and 2 deletions

13
scripts/format.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
cd "$(dirname "$0")"
cd ..
echo -n "Running dos2unix "
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'"
echo
echo -n "Running clang-format "
find . -name "*\.h" -o -name "*\.cpp"|grep -v bundled|xargs -I {} sh -c "clang-format -i {}; echo -n '.'"
echo