Browse Source

format code with perltidy

debextract
parent
commit
4ba82a41cf
Signed by untrusted user: josch
GPG Key ID: F2CBA5C78FBD83E1
  1. 15
      .perltidyrc
  2. 10
      coverage.sh
  3. 1641
      mmdebstrap

15
.perltidyrc

@ -0,0 +1,15 @@ @@ -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

10
coverage.sh

@ -2,6 +2,16 @@ @@ -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
Loading…
Cancel
Save