[libembperl-perl] 05/06: Use "find" to ensure case-sensitivity in [a-z] wildcards
Axel Beckert
abe at deuxchevaux.org
Sun Jun 26 21:52:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libembperl-perl.
commit 3dcf43540b36ba5036c6eb6b05e23dd936515dfc
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Sun Jun 26 23:38:01 2016 +0200
Use "find" to ensure case-sensitivity in [a-z] wildcards
Properly closes: #828636
---
debian/changelog | 3 +++
debian/rules | 8 +++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 4036724..e066728 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ libembperl-perl (2.5.0-8) UNRELEASED; urgency=medium
* Revert "drop special handling of German manpages" from previous
upload. They're not gone.
+ * Use "find" to ensure case-sensitivity in [a-z] wildcards for selecting
+ German-written man pages. (Properly closes: #828636) Thanks to Reiner
+ Herrmann for the bug-report and for helping finding the real culprit.
-- Axel Beckert <abe at debian.org> Sun, 26 Jun 2016 19:04:37 +0200
diff --git a/debian/rules b/debian/rules
index f643b0b..3576476 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,8 +28,14 @@ override_dh_auto_install: $(POD2TEXT)
install -m 755 *cgi.pl debian/libembperl-perl/usr/lib/cgi-bin/
# move German manpages to usr/share/man/de/man{1,2,3}
+ #
+ # find is needed here instead of pure shell wildcards, because
+ # "[a-z]" also matches capital letters iff /bin/sh is a bash
+ # and the locale settings are set to a locale which makes
+ # matches case-insensitive by default, e.g. LC_ALL=de_DE.utf-8.
+ # See https://bugs.debian.org/828636 for details.
@set -e;\
- for f in $(TMP)/usr/share/man/man3/*[a-z]D.3pm; do \
+ for f in $$(find $(TMP)/usr/share/man/man3/ -name '*[a-z]D.3pm'); do \
f_de=`echo $$f | sed 's,man\(.\)/\([^/]*\)D\.\([^/]*\)$$,de/man\1/\2.\3,'` ;\
echo "mv $$f $$f_de" ;\
mv $$f $$f_de ;\
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libembperl-perl.git
More information about the Pkg-perl-cvs-commits
mailing list