diff -Naur man-pages-cs-0.16.orig/Makefile man-pages-cs-0.16-unicode/Makefile --- man-pages-cs-0.16.orig/Makefile 2002-11-26 22:59:43.000000000 +0100 +++ man-pages-cs-0.16-unicode/Makefile 2007-01-07 21:43:55.000000000 +0100 @@ -1,4 +1,6 @@ -# Do "make install" to copy the pages to their destination. +# Do "make install" to copy the pages to their destination and leave them in +# ISO-8859-2 charset +# Do "make UTF8=yes install" to install the pages in UTF-8 encoding # Do "make gz" before "make install" if you would like # to use compressed source pages. # Do "make remove" before "make gz" if you would like to remove man @@ -30,7 +32,7 @@ install -d -m 755 $(MANDIR)/$$i; \ done # install the files - if echo $(LANG) $(LC_ALL) | grep -qi UTF-8; then \ + if [ "x$(UTF8)" == "xyes" ]; then \ find man? -type f -exec iconv -f ISO-8859-2 -t UTF-8 {} -o $(MANDIR)/{} \; ; \ find man? -type f -exec chmod 644 $(MANDIR)/{} \; ; \ else \