format code with perltidy

This commit is contained in:
Johannes 'josch' Schauer 2020-01-08 17:44:07 +01:00
parent bba8922243
commit 4ba82a41cf
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1
3 changed files with 1075 additions and 591 deletions

15
.perltidyrc Normal file
View file

@ -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

View file

@ -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

1641
mmdebstrap

File diff suppressed because it is too large Load diff