Basic debian packaging

Add a build dependency on rake_utils, but we get simple debian packages
out of it.
This commit is contained in:
Alex Young
2012-05-30 17:35:07 +01:00
parent 15c3133458
commit f21dd9e888
8 changed files with 295 additions and 5 deletions

View File

@@ -1,3 +1,6 @@
require 'rake_utils/debian'
include RakeUtils::DSL
DEBUG = true
ALL_SOURCES =FileList['src/*']
@@ -75,9 +78,14 @@ OBJECTS.zip( SOURCES ).each do |o,c|
end
desc "Remove all build targets, binaries and temporary files"
rule 'clean' do
sh "rm -rf *~ build " + (
TEST_MODULES.map { |n| ["tests/check_#{n}", "tests/check_#{n}.o"] }.flatten
).
join(" ")
task :clean do
sh "rm -rf *~ build"
end
namespace :pkg do
deb do |t|
t.code_files = ALL_SOURCES + ["Rakefile"]
t.pkg_name = "flexnbd"
t.generate_changelog!
end
end