summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/talkfile.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-08-23 18:57:50 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-08-23 18:57:50 +0000
commit7feb6399383eb3b5cb63ba5f1d2db3117fd09528 (patch)
treee262e6405619b51ebb2e6fcda39261c141c749cf /rbutil/rbutilqt/base/talkfile.cpp
parent139127217aa7f4a2916a42153773b347095f5364 (diff)
downloadrockbox-7feb6399383eb3b5cb63ba5f1d2db3117fd09528.tar.gz
rockbox-7feb6399383eb3b5cb63ba5f1d2db3117fd09528.tar.bz2
rockbox-7feb6399383eb3b5cb63ba5f1d2db3117fd09528.zip
rbutil: add a option to ignore specific files for .talk file generation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22478 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/talkfile.cpp')
-rw-r--r--rbutil/rbutilqt/base/talkfile.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/talkfile.cpp b/rbutil/rbutilqt/base/talkfile.cpp
index 81dcf01ff5..bc3f5f965d 100644
--- a/rbutil/rbutilqt/base/talkfile.cpp
+++ b/rbutil/rbutilqt/base/talkfile.cpp
@@ -159,6 +159,19 @@ bool TalkFileCreator::createTalkList(QDir startDir)
// insert into List
if( !fileInf.fileName().isEmpty() && !fileInf.fileName().endsWith(".talk") && m_talkFiles)
{
+ //test if we should ignore this file
+ bool match = false;
+ for(int i=0; i < m_ignoreFiles.size();i++)
+ {
+ QRegExp rx(m_ignoreFiles[i].trimmed());
+ rx.setPatternSyntax(QRegExp::Wildcard);
+ if(rx.exactMatch(fileInf.fileName()))
+ match = true;
+ }
+ if(match)
+ continue;
+
+ //generate entry
TalkGenerator::TalkEntry entry;
if(m_stripExtensions)
entry.toSpeak = stripExtension(fileInf.fileName());