Revision d1dfed0c
Added by Dominic Cleal almost 10 years ago
.gitignore | ||
---|---|---|
_build
|
||
zeus.json
|
||
custom_plan.rb
|
||
pkg/
|
VERSION | ||
---|---|---|
1.6-develop
|
||
1.6.0-develop
|
lib/tasks/pkg.rake | ||
---|---|---|
abort 'Error while building the DEB package with `debuild`. Please check the output.'
|
||
end
|
||
end
|
||
|
||
desc 'Generate package source tar.bz2, supply ref=<tag> for tags'
|
||
task :generate_source do
|
||
File.exist?('pkg') || FileUtils.mkdir('pkg')
|
||
ref = ENV['ref'] || 'HEAD'
|
||
version = `git show #{ref}:VERSION`.chomp.chomp('-develop')
|
||
raise "can't find VERSION from #{ref}" if version.length == 0
|
||
`git archive --prefix=foreman-#{version}/ #{ref} | bzip2 -9 > pkg/foreman-#{version}.tar.bz2`
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #5793 - add pkg:generate_source rake task to create tar.bz2