File: remove-pl-extension.patch

package info (click to toggle)
libjavascript-beautifier-perl 0.25-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 204 kB
  • sloc: perl: 1,004; makefile: 7
file content (58 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Description: Remove .pl extension from js_beautify.pl
Origin: vendor
Forwarded: not-needed
Author: Jonathan Yu <frequency@cpan.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-07-28

--- a/bin/js_beautify.pl
+++ b/bin/js_beautify.pl
@@ -56,12 +56,12 @@
 
 =head1 NAME
 
-js_beautify.pl - command tool to beautify your javascript files
+js_beautify - command tool to beautify your javascript files
 
 =head1 SYNOPSIS
 
-    js_beautify.pl [options] FILE
-    js_beautify.pl [options] -
+    js_beautify [options] FILE
+    js_beautify [options] -
 
 =head1 OPTIONS
 
--- a/lib/Code/TidyAll/Plugin/JSBeautifier.pm
+++ b/lib/Code/TidyAll/Plugin/JSBeautifier.pm
@@ -8,7 +8,7 @@
 
 our $VERSION = '0.21';
 
-sub _build_cmd {'js_beautify.pl'}
+sub _build_cmd {'js_beautify'}
 
 sub transform_file {
     my ( $self, $file ) = @_;
@@ -55,7 +55,7 @@
 
 =head1 DESCRIPTION
 
-Runs C<js_beautify.pl> of L<JavaScript::Beautifier>, a JavaScript tidier implemented in Perl.
+Runs C<js_beautify> of L<JavaScript::Beautifier>, a JavaScript tidier implemented in Perl.
 
 =head1 INSTALLATION
 
@@ -67,10 +67,10 @@
 
 =item argv
 
-Arguments to pass to js_beautify.pl
+Arguments to pass to js_beautify
 
 =item cmd
 
-Full path to js_beautify.pl
+Full path to js_beautify
 
 =back