diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-04-05 09:54:34 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-04-05 09:54:34 +0000 |
commit | 6539fc1c00abafa5195e569fedbc24be5ef9b63d (patch) | |
tree | 5f55008af0b7f9c5bbf338fa91fb1b72bf45b729 | |
parent | 1696a32337f6e362b68e95283081f3a9828dd7bd (diff) | |
download | drakx-6539fc1c00abafa5195e569fedbc24be5ef9b63d.tar drakx-6539fc1c00abafa5195e569fedbc24be5ef9b63d.tar.gz drakx-6539fc1c00abafa5195e569fedbc24be5ef9b63d.tar.bz2 drakx-6539fc1c00abafa5195e569fedbc24be5ef9b63d.tar.xz drakx-6539fc1c00abafa5195e569fedbc24be5ef9b63d.zip |
check the presence of non ascii characters in perl files (allow utf8 chars if there is 'use utf8')
-rw-r--r-- | perl-install/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
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' |