From c95e94f671f3a623d53dfa48ee11713dae66737e Mon Sep 17 00:00:00 2001 From: Tommy Reynolds Date: Wed, 18 Jan 2006 08:24:37 +0000 Subject: 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. --- bin/copy-figs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/copy-figs') 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 ;; * ) -- cgit