summaryrefslogtreecommitdiffstats
path: root/tasks/rake/dailybuild.rake
blob: a19eb69cfd09b615ddd41555753462546380b4f7 (plain)
1
2
3
4
5
6
7
8
9
desc "Create a Puppet daily build"
task :daily => :changelog do
  version = "puppet" + "-" + Time.now.localtime.strftime("%Y%m%d")
  sh "git archive --format=tar --prefix=#{version}/ HEAD^{tree} >#{version}.tar"
  sh "pax -waf #{version}.tar -s ':^:#{version}/:' ChangeLog"
  sh "rm ChangeLog"
  sh "gzip -f -9 #{version}.tar"
end