perltidy: Do not leave backups behind if there are no errors.
authorVille Skyttä <ville.skytta@iki.fi>
Mon, 16 Jul 2012 17:28:29 +0300
changeset 3292 c33aa0047b4d
parent 3291 3f4654a94723
child 3293 3425027f0dcf
perltidy: Do not leave backups behind if there are no errors.
Makefile
--- a/Makefile	Mon Jun 25 18:25:10 2012 +0300
+++ b/Makefile	Mon Jul 16 17:28:29 2012 +0300
@@ -9,7 +9,8 @@
 	misc/bundle/lib/Bundle/W3C/Validator.pm
 GZIP_FILES = $(addsuffix .gz,$(CSS_FILES)) htdocs/scripts/combined.js.gz
 
-PERLTIDY = perltidy --profile=misc/perltidyrc --backup-and-modify-in-place
+PERLTIDY = perltidy --profile=misc/perltidyrc --backup-and-modify-in-place \
+	--backup-file-extension=/
 PERLCRITIC = perlcritic --profile misc/perlcriticrc
 
 YUICOMPRESSOR = java -jar $(wildcard /usr/share/java/yuicompressor*.jar)