Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a2ada08

Browse files
committed
perltidy: Don't write backup files
Newer perltidy versions can just avoid writing backup files, so we don't need the old dance of deleting them afterwards. Supported since 20120619. https://metacpan.org/source/SHANCOCK/Perl-Tidy-20120619/CHANGES#L61
1 parent 45f87b7 commit a2ada08

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/tools/pgindent/perltidyrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--add-whitespace
22
--backup-and-modify-in-place
3+
--backup-file-extension=/
34
--delete-old-whitespace
45
--entab-leading-whitespace=4
56
--keep-old-blank-lines=2

src/tools/pgindent/pgperltidy

-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ PERLTIDY=${PERLTIDY:-perltidy}
1818
) |
1919
sort -u |
2020
xargs $PERLTIDY --profile=src/tools/pgindent/perltidyrc
21-
22-
# perltidyrc specifies --backup-and-modify-in-place, so get rid of .bak files
23-
find . -type f -name '*.bak' | xargs rm

0 commit comments

Comments
 (0)