File: check_perltidy

package info (click to toggle)
dh-haskell 0.6.13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100 kB
  • sloc: perl: 182; sh: 27; makefile: 17
file content (13 lines) | stat: -rwxr-xr-x 210 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -eu

exit_value=0
for mod in $(find "$GIT_DIR/.." -name '*.pm') ; do
   perltidy "$mod"
   if ! diff "$mod" "$mod.tdy" ; then
      exit_value=1
   fi
   rm -f "$mod.tdy"
done

exit "$exit_value"