diff options
| author | mpalmer <mpalmer@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-12 05:56:15 +0000 |
|---|---|---|
| committer | mpalmer <mpalmer@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-12 05:56:15 +0000 |
| commit | dd1c4b9049da2e6860b8f055d67f0bd56af5cc87 (patch) | |
| tree | 01a3d2da1d8e15b1249a5976f09575fc5a0f2bca | |
| parent | 01fecb135c794b927eef5a586a369f42d0365c92 (diff) | |
| download | puppet-dd1c4b9049da2e6860b8f055d67f0bd56af5cc87.tar.gz puppet-dd1c4b9049da2e6860b8f055d67f0bd56af5cc87.tar.xz puppet-dd1c4b9049da2e6860b8f055d67f0bd56af5cc87.zip | |
Add a task to build Debian packages more-or-less 'directly' out of SVN.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1908 980ebf18-57e1-0310-9a29-db15c13687c0
| -rw-r--r-- | Rakefile | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -67,4 +67,30 @@ if project.has?(:epm) end end +rule(/_is_runnable$/) do |t| + available = false + executable = t.name.sub(/_is_runnable$/, '') + ENV['PATH'].split(':').each do |elem| + available = true if File.executable? File.join(elem, executable) + end + + unless available + puts "You do not have #{executable} available in your path" + exit 1 + end +end + +file "debian" => :bzr_is_runnable do + system("bzr get http://www.hezmatt.org/~mpalmer/bzr/puppet.debian.svn debian") || exit(1) +end + +task :check_build_deps => 'dpkg-checkbuilddeps_is_runnable' do + system("dpkg-checkbuilddeps") || exit(1) +end + +task :debian_packages => [ "debian", :check_build_deps, :fakeroot_is_runnable ] do + system("fakeroot debian/rules clean") || exit(1) + system("fakeroot debian/rules binary") || exit(1) +end + # $Id$ |
