aboutsummaryrefslogtreecommitdiffstats
path: root/enc/depend
diff options
context:
space:
mode:
Diffstat (limited to 'enc/depend')
-rw-r--r--enc/depend2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/depend b/enc/depend
index d97c9056c3..d67ca3f7b5 100644
--- a/enc/depend
+++ b/enc/depend
@@ -1,7 +1,7 @@
% deffile = (true if /\$\(DEFFILE\)/ =~ CONFIG["LINK_SO"])
% encs = Dir.open($srcdir) {|d| d.grep(/.+\.c\z/)} - BUILTIN_ENCS
% encs.each {|e| e.chomp!(".c")}
-% alphanumeric_order = proc {|e| e.split(/(\d+)/).map {|n| Integer(n) rescue n}}
+% alphanumeric_order = proc {|e| e.scan(/(\d+)|(\D+)/).map {|n,a| a||[n.size,n.to_i]}.flatten}
% encs = encs.sort_by(&alphanumeric_order)
% trans = Dir.open($srcdir+"/trans") {|d| d.select {|e| e.chomp!('.c')}}
% trans = trans.sort_by(&alphanumeric_order)