diff options
author | Florian Frank <flori@ping.de> | 2011-11-23 01:35:48 +0100 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2011-11-23 01:35:48 +0100 |
commit | f8cb4c25b67a32bbd2c233684e16f514ae7be034 (patch) | |
tree | 98a69d7c94db374661175b924ddd68306f7d4169 /Rakefile | |
parent | 60cf748653ec0d847155e9d65c835b10c47f5e50 (diff) | |
download | json-f8cb4c25b67a32bbd2c233684e16f514ae7be034.tar.gz |
Use git ls-files to determine package files
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -22,14 +22,13 @@ MAKE = ENV['MAKE'] || %w[gmake make].find { |c| system(c, '-v') } PKG_NAME = 'json' PKG_TITLE = 'JSON Implementation for Ruby' PKG_VERSION = File.read('VERSION').chomp -PKG_FILES = FileList["**/*"].exclude(/CVS|pkg|tmp|coverage|Makefile|\.nfs\.|\.iml\Z/).exclude(/\.(so|bundle|o|class|#{CONFIG['DLEXT']})$/) +PKG_FILES = FileList[`git ls-files`.split(/\n/)] EXT_ROOT_DIR = 'ext/json/ext' EXT_PARSER_DIR = "#{EXT_ROOT_DIR}/parser" EXT_PARSER_DL = "#{EXT_PARSER_DIR}/parser.#{CONFIG['DLEXT']}" RAGEL_PATH = "#{EXT_PARSER_DIR}/parser.rl" EXT_PARSER_SRC = "#{EXT_PARSER_DIR}/parser.c" -PKG_FILES << EXT_PARSER_SRC EXT_GENERATOR_DIR = "#{EXT_ROOT_DIR}/generator" EXT_GENERATOR_DL = "#{EXT_GENERATOR_DIR}/generator.#{CONFIG['DLEXT']}" EXT_GENERATOR_SRC = "#{EXT_GENERATOR_DIR}/generator.c" |