Didn't we already have one of these?  I can't seem to find it, but I  
thought it was in the build library (I can't actually remember what we  
did with that).

On Jul 20, 2009, at 4:46 AM, James Turnbull wrote:

>
>
> Signed-off-by: James Turnbull <[email protected]>
> ---
> Rakefile |   17 +++++++++++------
> 1 files changed, 11 insertions(+), 6 deletions(-)
>
> diff --git a/Rakefile b/Rakefile
> index f6ffd8f..62b6bfc 100644
> --- a/Rakefile
> +++ b/Rakefile
> @@ -51,6 +51,15 @@ end
> Rake::GemPackageTask.new(spec) do |pkg|
> end
>
> +desc "Create a 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
> +
> task :tracdocs do
>     require 'puppet'
>     require 'puppet/util/reference'
> @@ -142,16 +151,12 @@ task :mail_patches do
>     sh "rm 00*.patch"
> end
>
> -desc "Create a changelog based on your git commits."
> +desc "Create a ChangeLog based on git commits."
> task :changelog do
>     CHANGELOG_DIR = "#{Dir.pwd}"
>     mkdir(CHANGELOG_DIR) unless File.directory?(CHANGELOG_DIR)
>     change_body=`git log --pretty=format:'%aD%n%an <%ae>%n%s%n'`
> -    File.open(File.join(CHANGELOG_DIR, "CHANGELOG.git"), 'w') do |f|
> +    File.open(File.join(CHANGELOG_DIR, "ChangeLog"), 'w') do |f|
>         f << change_body
>     end
> -
> -    # Changelog commit
> -    `git add #{CHANGELOG_DIR}/CHANGELOG.git`
> -    `git commit -m "Update CHANGELOG.git"`
> end
> -- 
> 1.6.0.6
>
>
> >


-- 
The Number 1 Sign You Have Nothing to Do at Work...
     The 4th Division of Paperclips has overrun the Pushpin Infantry
     and General White-Out has called for a new skirmish.
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to