docs-common/bin copy-figs,1.4,1.5
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Wed Jan 18 08:24:44 UTC 2006
Author: jtr
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26978
Modified Files:
copy-figs
Log Message:
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.
Index: copy-figs
===================================================================
RCS file: /cvs/docs/docs-common/bin/copy-figs,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- copy-figs 13 Dec 2005 16:45:47 -0000 1.4
+++ copy-figs 18 Jan 2006 08:24:37 -0000 1.5
@@ -189,15 +189,15 @@
# 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
;;
* )
More information about the Fedora-docs-commits
mailing list