diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/etc/dofiles.sh')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.75.0/etc/dofiles.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/etc/dofiles.sh b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/etc/dofiles.sh new file mode 100644 index 00000000..e08fd6f7 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/etc/dofiles.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 + src/uncrustify -f $item -c etc/ben.cfg > out/$item + +done + |