diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/etc/uncrust-files.sh')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/etc/uncrust-files.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/etc/uncrust-files.sh b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/etc/uncrust-files.sh new file mode 100644 index 00000000..3e1d09b3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/etc/uncrust-files.sh @@ -0,0 +1,19 @@ +#! /bin/sh + +if [ -z "$1" ]; then + echo "specify the file that contains a list of files" + exit +fi + +files=$(cat $1) + +mkdir -p out + +for item in $files ; do + + dn=$(dirname $item) + mkdir -p out/$dn + ~/bin/uncrustify -f $item -c ~/.uncrustify/xsupplicant.cfg > out/$item + +done + |