format code with perltidy

pull/1/head
parent bba8922243
commit 4ba82a41cf
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -0,0 +1,15 @@
# mmdebstrap is a tool focused on Debian and derivatives (it relies on apt
# after all). Thus, we use a perl style used in other Debian Perl code. The
# following options are used in Lintian and devscripts
--break-before-all-operators
--noblanks-before-comments
--cuddled-else
--maximum-line-length=79
--paren-tightness=2
--square-bracket-tightness=2
--space-for-semicolon
--opening-brace-always-on-right
--stack-opening-tokens
--stack-closing-tokens
--format-skipping

@ -2,6 +2,16 @@
set -eu
perltidy < mmdebstrap > mmdebstrap.tdy
ret=0
diff -u mmdebstrap mmdebstrap.tdy || ret=$?
if [ "$ret" -ne 0 ]; then
echo "perltidy failed" >&2
rm mmdebstrap.tdy
exit 1
fi
rm mmdebstrap.tdy
mirrordir="./shared/cache/debian"
if [ ! -e "$mirrordir" ]; then

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save