Skip to content

Instantly share code, notes, and snippets.

@steveno
Last active November 6, 2017 01:15
Show Gist options
  • Save steveno/32f098abb6d08e34da29ba182a93705e to your computer and use it in GitHub Desktop.
Save steveno/32f098abb6d08e34da29ba182a93705e to your computer and use it in GitHub Desktop.
Run uncrustify on balistica source code
#!/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