Make the Rakefile take note of DEBUG=

This commit is contained in:
nick
2012-05-31 12:12:32 +01:00
parent e863bffe3d
commit 71e755906b

View File

@@ -1,7 +1,8 @@
require 'rake_utils/debian' require 'rake_utils/debian'
include RakeUtils::DSL include RakeUtils::DSL
DEBUG = true DEBUG = ENV.has_key?('DEBUG') &&
%w|yes y ok 1 true t|.include?(ENV['DEBUG'])
ALL_SOURCES =FileList['src/*'] ALL_SOURCES =FileList['src/*']
SOURCES = ALL_SOURCES.select { |c| c =~ /\.c$/ } SOURCES = ALL_SOURCES.select { |c| c =~ /\.c$/ }
@@ -89,3 +90,4 @@ namespace :pkg do
t.generate_changelog! t.generate_changelog!
end end
end end