diff --git a/lib/racc/rdoc/grammar.en.rdoc b/doc/en/grammar2.en.rdoc similarity index 100% rename from lib/racc/rdoc/grammar.en.rdoc rename to doc/en/grammar2.en.rdoc diff --git a/lib/racc/pre-setup b/lib/racc/pre-setup deleted file mode 100644 index 5027d865..00000000 --- a/lib/racc/pre-setup +++ /dev/null @@ -1,13 +0,0 @@ -def generate_parser_text_rb(target) - return if File.exist?(srcfile(target)) - $stderr.puts "generating #{target}..." - File.open(target, 'w') {|f| - f.puts "module Racc" - f.puts " PARSER_TEXT = <<'__end_of_file__'" - f.puts File.read(srcfile('parser.rb')) - f.puts "__end_of_file__" - f.puts "end" - } -end - -generate_parser_text_rb 'parser-text.rb' diff --git a/racc.gemspec b/racc.gemspec index 810f9a76..20f38925 100644 --- a/racc.gemspec +++ b/racc.gemspec @@ -24,10 +24,10 @@ DESC s.licenses = ["Ruby", "BSD-2-Clause"] s.executables = ["racc"] s.files = [ - "COPYING", "ChangeLog", - "README.ja.rdoc", "README.rdoc", "Rakefile", "TODO", "bin/racc", + "COPYING", "ChangeLog", "TODO", + "README.ja.rdoc", "README.rdoc", "bin/racc", "ext/racc/MANIFEST", - "ext/racc/com/headius/racc/Cparse.java", "ext/racc/cparse/cparse.c", + "ext/racc/cparse/cparse.c", "ext/racc/cparse/extconf.rb", "lib/racc.rb", "lib/racc/compat.rb", "lib/racc/debugflags.rb", "lib/racc/exception.rb", @@ -35,17 +35,14 @@ DESC "lib/racc/info.rb", "lib/racc/iset.rb", "lib/racc/logfilegenerator.rb", "lib/racc/parser-text.rb", "lib/racc/parser.rb", "lib/racc/parserfilegenerator.rb", - "lib/racc/pre-setup", "lib/racc/sourcetext.rb", + "lib/racc/sourcetext.rb", "lib/racc/state.rb", "lib/racc/statetransitiontable.rb", - "lib/racc/static.rb", "doc/en/NEWS.en.rdoc", + "lib/racc/static.rb", + "doc/en/NEWS.en.rdoc", "doc/en/grammar2.en.rdoc", "doc/en/grammar.en.rdoc", "doc/ja/NEWS.ja.rdoc", "doc/ja/command.ja.html", "doc/ja/debug.ja.rdoc", "doc/ja/grammar.ja.rdoc", "doc/ja/index.ja.html", "doc/ja/parser.ja.rdoc", "doc/ja/usage.ja.html", - "sample/array.y", "sample/array2.y", "sample/calc-ja.y", - "sample/calc.y", "sample/conflict.y", "sample/hash.y", - "sample/lalr.y", "sample/lists.y", "sample/syntax.y", - "sample/yyerr.y" ] s.require_paths = ["lib"] s.required_ruby_version = ">= 2.5"