From 6539fc1c00abafa5195e569fedbc24be5ef9b63d Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 5 Apr 2005 09:54:34 +0000 Subject: check the presence of non ascii characters in perl files (allow utf8 chars if there is 'use utf8') --- perl-install/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/Makefile') diff --git a/perl-install/Makefile b/perl-install/Makefile index f4711c77a..2605a3386 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -44,7 +44,10 @@ clean: rm -rf auto ../drakxtools.tar.bz2 *.bak find . -name "*~" -o -name ".#*" -o -name "TAGS" -o -name "*.old" | xargs rm -f -check: +check_pms_encoding: + @for i in $(ALLPMS); do charset=ascii; grep -q 'use utf8' $$i && charset=utf8; iconv -f $$charset -t $$charset $$i >/dev/null || { echo "bad $$charset character in $$i"; exit 1; }; done + +check: check_pms_encoding perl -I. -Mlang -e 'lang::check' perl -I. -Mkeyboard -e 'keyboard::check' -- cgit v1.2.1