summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile11
-rw-r--r--misc/perltidyrc15
2 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..73c5532
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+PERL_FILES = httpd/cgi-bin/check httpd/cgi-bin/sendfeedback.pl \
+ misc/spmpp.pl misc/docs_errors.pl misc/bundle/Makefile.PL \
+ misc/bundle/lib/Bundle/W3C/Validator.pm
+
+all:
+
+tidy:
+ for file in $(PERL_FILES) ; do \
+ echo "Tidying $$file..." ; \
+ perltidy --profile=misc/perltidyrc $$file ; \
+ done
diff --git a/misc/perltidyrc b/misc/perltidyrc
new file mode 100644
index 0000000..36c8b48
--- /dev/null
+++ b/misc/perltidyrc
@@ -0,0 +1,15 @@
+# perltidy(1) profile for the W3C Markup Validator
+--standard-error-output
+--warning-output
+--output-line-ending=unix
+--maximum-line-length=79
+--indent-columns=4
+--continuation-indentation=4
+--vertical-tightness=2
+--paren-tightness=2
+--brace-tightness=2
+--square-bracket-tightness=2
+--opening-sub-brace-on-new-line
+--nospace-for-semicolon
+--nooutdent-long-lines
+--break-after-all-operators