| 1 | #!/bin/bash |
| 2 | # apt install perltidy |
| 3 | |
| 4 | function tidy { |
| 5 | echo "Tidying $@" |
| 6 | # maybe --indent-only ? |
| 7 | perltidy -b -bext=/ -i=2 --paren-tightness=2 --cuddled-else --freeze-blank-lines "$@" |
| 8 | } |
| 9 | |
| 10 | cd "$(dirname $0)/.." |
| 11 | |
| 12 | tidy pristine-{gz,bz2,xz,tar} |
| 13 | tidy test.pl |
| 14 | |
| 15 | for f in $(find Pristine | egrep 'pm$'); do |
| 16 | tidy $f |
| 17 | done |