summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-01-18 08:24:37 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-01-18 08:24:37 +0000
commitc95e94f671f3a623d53dfa48ee11713dae66737e (patch)
tree12ef949567ad215f43600c32dc3afe3aeefe9bc6
parentadd9c248afe46be63c6e66db456a181e73a86b44 (diff)
downloadfedora-doc-utils-c95e94f671f3a623d53dfa48ee11713dae66737e.tar.gz
fedora-doc-utils-c95e94f671f3a623d53dfa48ee11713dae66737e.tar.xz
fedora-doc-utils-c95e94f671f3a623d53dfa48ee11713dae66737e.zip
Use better heuristics to include non-conforming figs/ filenames.
Now, files are rejected as not matching the language selection if they have the pattern "*-??.*" or "*-??_??.*" -- in other words, if the last dashed comonpent of the filename is either a two-letter language code or a two-letter language code with a two-letter country code.
-rwxr-xr-xbin/copy-figs10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/copy-figs b/bin/copy-figs
index 81b41f3..d07f825 100755
--- a/bin/copy-figs
+++ b/bin/copy-figs
@@ -189,15 +189,15 @@ do
# language neutral
copyIt=${haveManifest}
case "${bn}" in
- *-${targetLang}.* )
- # Has matching language
- copyIt=yes
- ;;
*-*-* )
# Multiple dashes imply ambiguous filename
copyIt=yes
;;
- *-* )
+ *-${targetLang}.* )
+ # Has matching language
+ copyIt=yes
+ ;;
+ *-??.* | *-??_??.* )
# Doesn't match target language
;;
* )