~ubuntu-branches/ubuntu/intrepid/racc/intrepid

« back to all changes in this revision

Viewing changes to packages/amstd/lib/amstd/fileutils.rb

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2005-04-09 17:54:44 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050409175444-fvtir838ypkn7a58
Tags: 1.4.4-1
* new upstream version.  (closes: #301768)
* added racc2y.1 and y2racc.1.
* modified racc2y and y2racc to use optparse instead of deprecated getopts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# fileutils.rb (using new fileutils)
3
 
#
4
 
#   Copyright (c) 2000,2001 Minero Aoki <aamine@loveruby.net>
5
 
#
6
 
#   This program is free software.
7
 
#   You can distribute/modify this program under the terms of
8
 
#   the GNU General Public License version 2 or later.
9
 
#
10
 
 
11
 
require 'fileutils'
12
 
 
13
 
 
14
 
module FILEUTILS
15
 
 
16
 
  extend FileTest
17
 
 
18
 
  include FileUtils
19
 
  extend FileUtils
20
 
 
21
 
  Separator = File::SEPARATOR
22
 
 
23
 
  BSIZE = 1024 * 2  # 2KB
24
 
 
25
 
  class << self
26
 
 
27
 
  def join( *args )
28
 
    args.flatten!
29
 
    args.join( Separator )
30
 
  end
31
 
 
32
 
  FileUtils.private_instance_methods.each do |m|
33
 
    public m
34
 
  end
35
 
 
36
 
  end   # class << self
37
 
 
38
 
end