SOURCES: gimp-help-lang-files.rb - clean up: hardcoded values removed, stan...
twittner
twittner at pld-linux.org
Tue Oct 7 18:50:24 CEST 2008
Author: twittner Date: Tue Oct 7 16:50:24 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- clean up: hardcoded values removed, standarize rexeg quotation
---- Files affected:
SOURCES:
gimp-help-lang-files.rb (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/gimp-help-lang-files.rb
diff -u SOURCES/gimp-help-lang-files.rb:1.1 SOURCES/gimp-help-lang-files.rb:1.2
--- SOURCES/gimp-help-lang-files.rb:1.1 Mon Oct 6 22:34:53 2008
+++ SOURCES/gimp-help-lang-files.rb Tue Oct 7 18:50:18 2008
@@ -46,15 +46,15 @@
require 'find'
Find.find(dir) do |rpath|
- path = rpath.sub(%r!^#{dir}!, '')
- if FileTest.directory?(rpath) && path.length > 0 && rpath !~ %r!^\.{1,2}! && eval(reskip)
- if path !~ %r!(/en/)|(/en$)! && path =~ %r!(/([a-z]{2})/)|(/([a-z]{2})$)!
+ path = rpath.sub(%r@^#{dir}@, '')
+ if FileTest.directory?(rpath) && path.length > 0 && rpath !~ %r@^\.{1,2}@ && eval(reskip)
+ if path !~ %r@(/en/)|(/en$)@ && path =~ %r@(/([a-z]{2})/)|(/([a-z]{2})$)@
dirs.push "%dir %lang(#{$2}#{$4}) #{path}"
else
dirs.push "%dir #{path}"
end
- elsif FileTest.file?(rpath) && path !~ %r!usr/share/doc!
- if path !~ %r!/en/! && path =~ %r!/([a-z]{2})/!
+ elsif FileTest.file?(rpath) && eval(reskip)
+ if path !~ %r@/en/@ && path =~ %r@/([a-z]{2})/@
files.push "%lang(#{$1}) #{path}"
else
files.push path
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/gimp-help-lang-files.rb?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list