File: check_perltidy

package info (click to toggle)
dh-haskell 0.6.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 76 kB
  • sloc: perl: 141; sh: 27; makefile: 3
file content (13 lines) | stat: -rwxr-xr-x 210 bytes parent folder | download | duplicates (2)
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"