Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 13
- Log:
Initial import of Typo 2.6.0 sources from a downloaded Tarball.
Typo is a Ruby On Rails based blog engine.
- Author:
- adh
- Date:
- Sat Jul 22 22:25:02 +0100 2006
- Size:
- 1108 Bytes
1 | # Rakefile for rubypants -*-ruby-*- |
2 | require 'rake/rdoctask' |
3 | |
4 | |
5 | desc "Run all the tests" |
6 | task :default => [:test] |
7 | |
8 | desc "Do predistribution stuff" |
9 | task :predist => [:doc] |
10 | |
11 | |
12 | desc "Run all the tests" |
13 | task :test do |
14 | ruby 'test_rubypants.rb' |
15 | end |
16 | |
17 | desc "Make an archive as .tar.gz" |
18 | task :dist => :test do |
19 | system "darcs dist -d rubypants#{get_darcs_tree_version}" |
20 | end |
21 | |
22 | |
23 | desc "Generate RDoc documentation" |
24 | Rake::RDocTask.new(:doc) do |rdoc| |
25 | rdoc.options << '--line-numbers --inline-source --all' |
26 | rdoc.rdoc_files.include 'README' |
27 | rdoc.rdoc_files.include 'rubypants.rb' |
28 | end |
29 | |
30 | |
31 | # Helper to retrieve the "revision number" of the darcs tree. |
32 | def get_darcs_tree_version |
33 | return "" unless File.directory? "_darcs" |
34 | |
35 | changes = `darcs changes` |
36 | count = 0 |
37 | tag = "0.0" |
38 | |
39 | changes.each("\n\n") { |change| |
40 | head, title, desc = change.split("\n", 3) |
41 | |
42 | if title =~ /^ \*/ |
43 | # Normal change. |
44 | count += 1 |
45 | elsif title =~ /tagged (.*)/ |
46 | # Tag. We look for these. |
47 | tag = $1 |
48 | break |
49 | else |
50 | warn "Unparsable change: #{change}" |
51 | end |
52 | } |
53 | |
54 | "-" + tag + "." + count.to_s |
55 | end |