This is a multi-part message in MIME format.

--Multipart_Mon__10_Feb_2003_15:22:16_+0900_08281008
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit

¡¡Çò°æ¤Ç¤¹¡£

¡¡ [ruby-list:30270] setup.rb ¤Î¥¹¥ì¥Ã¥É¤Ç¤âµÄÏÀ¤µ¤ì¤Æ¤¤¤¿¡¢
install.rb/setup.rb ¤Ç .bak .org .rej CVS/ RCS/ ¤È¤¤¤Ã¤¿¥´¥ß¤òÃÆ¤±¤Ê¤¤¤«
¤È¤¤¤¦ÌäÂê¤Ë¤Ä¤¤¤Æ¤Ç¤¹¡£

¡¡ tarball ¤ÇÇÛÉÛ¤¹¤ëºÝ¤Ï¤¢¤é¤«¤¸¤áºï¹¤ë¤È¤¤¤¦¼ê¤¬¤¢¤ë¤Î¤Ç¤¹¤¬¡¨Â Ã֥ǥ£¥ì¥¯¥È¥ê¤ò´Þ¤à¥¹¥Ä¥ê¡¼¾å¤Ç³«È¯¤·¤Æ¤¤¤ë»þ¤Ë¤â install.rb/setup.rb
¤ò»È¤¤¤¿¤¤¾ìÌ̤¬¤¢¤ê¤Þ¤¹¡£¤ä¤Ï¤ê¥´¥ß¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤ÎÂоݤ«¤é¤¤Æ¤¯¤ì¤¨Â
Êý¤¬¤¢¤ê¤¬¤¿¤¤¤È»×¤¤¤Þ¤¹¡£

¡¡¤È¤¤¤¦¤ï¤±¤Ç¡¢ setup-3.1.2 ¤ËÂФ¹¤ë¥Ñ¥Ã¥Á¤ò­¤Þ¤·¤¿¡£¤³¤ì¤Ë¤è¤ê¡¨Â

  ÒÃÃÖªþ ª®â᪮ÂÁãïòå ª®ãïòå £ª ®£ª®ïòéç ª®ò媮ïì
¤È¤¤¤Ã¤¿¥Õ¥¡¥¤¥ë¤¬¥¤¥ó¥¹¥È¡¼¥ë¤ÎÂоݤ«¤é«¤ì¤Þ¤¹¡¨Â

¡¡¤È¤³¤í¤Ç¡¢ src/*.rb ¤«¤é install.rb/setup.rb ¤òºî¤ëÊýË¡¤¬¸«ÉÕ¤«¤é¤Ê¤«
¤Ã¤¿¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤¹¤ì¤ÐÎɤ¤¤Î¤Ç¤·¤ç¤¦¤«¡©¡¡¤È¤ê¤¢¤¨¤º¡¢

  for type in setup install; do
    cat src/in.$type.rb \
      | ruby -ne 'if ($_ %r"setup/(\w+)") then system("cat",
"src/#{$1}.rb") else print($_) end' \
      > $type.rb
  done

¤È¤¤¤¦É÷¤ËÀ¸À®¤·¤Æ¤¤¤Þ¤¹¡£

-- 
shirai / korinkan.co.jp

Shirai,Kaoru
  Korinkan Ltd.



--Multipart_Mon__10_Feb_2003_15:22:16_+0900_08281008
Content-Type: text/plain;
 name
vsignore.diff" Content-Disposition: attachment; filename
vsignore.diff" Content-Transfer-Encoding: 7bit diff -x CVS -x tmp -x *~ -Nru setup-3.1.2.orig/src/fileop.rb setup-3.1.2/src/fileop.rb --- setup-3.1.2.orig/src/fileop.rb Tue May 7 13:52:44 2002 +++ setup-3.1.2/src/fileop.rb Mon Feb 10 14:52:29 2003 @@ -1,3 +1,31 @@ +module CvsIgnore + PATTERNS w( RCS CVS *~ *.bak *.BAK core *.core #* .#* *.orig *.rej *.old ) + + class << self + def match?(fpath) + matched alse + filename ile.basename(fpath) + CvsIgnore::PATTERNS.each do |pattern| + matched lob_match(pattern, filename) + break if matched + end + matched + end + + def glob_match(pat, str) + case pat[0] + when nil + not str[0] + when ?* + glob_match(pat[1..-1], str) || str[0] && glob_match(pat, str[1..-1]) + when ?? + str[0] && glob_match(pat[1..-1], str[1..-1]) + else + pat[0] str[0] && glob_match(pat[1..-1], str[1..-1]) + end + end + end +end module FileOperations @@ -102,13 +130,20 @@ def all_files( dname ) Dir.open( dname ) {|d| - return d.find_all {|n| File.file? "#{dname}/#{n}" } + return d.find_all {|n| + path #{dname}/#{n}" + File.file?(path) && !(CvsIgnore.match?(path)) + } } end def all_dirs( dname ) Dir.open( dname ) {|d| - return d.find_all {|n| dir? "#{dname}/#{n}" } - %w(. ..) + dirs .find_all {|n| + path #{dname}/#{n}" + dir?(path) && !(CvsIgnore.match?(path)) + } + return (dirs - %w(. ..)) } end --Multipart_Mon__10_Feb_2003_15:22:16_+0900_08281008--