projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
32fd7a4
)
*** empty log message ***
author
gc
<gc>
Sun, 23 Apr 2006 14:38:12 +0000
(14:38 +0000)
committer
gc
<gc>
Sun, 23 Apr 2006 14:38:12 +0000
(14:38 +0000)
bin/booh-backend
patch
|
blob
|
history
diff --git
a/bin/booh-backend
b/bin/booh-backend
index 8365e4ce00253ee353d59fd79f44769f38ad236a..b40d6f928756a51b0a286a0eaac427526c38b349 100755
(executable)
--- a/
bin/booh-backend
+++ b/
bin/booh-backend
@@
-704,7
+704,8
@@
def walk_source_dir
else
type = entry2type(file)
if type && !xmldir.elements["#{type}[@filename='#{utf8(file)}']"]
else
type = entry2type(file)
if type && !xmldir.elements["#{type}[@filename='#{utf8(file)}']"]
- if $commentsformat && type == 'image'
+ #- hack: don't run identify (which is slow) if format only contains default %t
+ if $commentsformat && type == 'image' && $commentsformat != '%t'
comment = utf8(`identify -format "#{$commentsformat}" '#{dir}/#{file}'`.chomp.sub(/\.$/, ''))
else
comment = utf8cut(file.sub(/\.[^\.]+$/, ''), 18)
comment = utf8(`identify -format "#{$commentsformat}" '#{dir}/#{file}'`.chomp.sub(/\.$/, ''))
else
comment = utf8cut(file.sub(/\.[^\.]+$/, ''), 18)