Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
9d2417c9
Commit
9d2417c9
authored
6 years ago
by
Dylan William Hardison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add perl-fmt script
parent
62d5637a
master
dev
version-5.2
release-5.0.6-etersoft
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
perl-fmt
contrib/perl-fmt
+24
-0
No files found.
contrib/perl-fmt
0 → 100755
View file @
9d2417c9
#!/usr/bin/env perl
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
use
5.10.1
;
use
strict
;
use
warnings
;
use
File::
Basename
qw(dirname)
;
use
Cwd
qw(realpath)
;
use
File::Spec::
Functions
qw(catfile catdir)
;
use
Env
qw(@PATH @PERL5LIB)
;
my
$bugzilla_dir
=
realpath
(
catdir
(
dirname
(
__FILE__
),
'..'
));
unshift
@PERL5LIB
,
catdir
(
$bugzilla_dir
,
'local'
,
'lib'
,
'perl5'
);
unshift
@PATH
,
catdir
(
$bugzilla_dir
,
'local'
,
'bin'
);
my
$profile
=
catfile
(
$bugzilla_dir
,
".perltidyrc"
);
warn
"formatting @ARGV\n"
;
exec
(
perltidy
=>
"--profile=$profile"
,
'-nst'
,
'-b'
,
'-bext=/'
,
'-conv'
,
@ARGV
);
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment