Last active
November 6, 2017 01:15
-
-
Save steveno/32f098abb6d08e34da29ba182a93705e to your computer and use it in GitHub Desktop.
Run uncrustify on balistica source code
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/bash | |
find . -name "*.vala" > files.txt | |
files=$(<files.txt) | |
mkdir -p out | |
for item in $files ; do | |
dn=$(dirname $item) | |
mkdir -p out/$dn | |
uncrustify -f $item -c .uncrustify.cfg > out/$item | |
done | |
rm files.txt | |
cp -r out/src/* src/ | |
cp -r out/test/* test/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment