public
Rubygem
Description: Apache Buildr
Homepage: http://incubator.apache.org/buildr
Clone URL: git://github.com/vic/buildr.git
Search Repo:
Oops.  Need to add the distro links to the textile docs before staging the 
release.


git-svn-id: https://svn.apache.org/repos/asf/incubator/buildr/trunk@652736 
13f79535-47bb-0310-9956-ffa450edef68
Assaf (author)
Thu May 01 19:31:02 -0700 2008
commit  f72d72932993263202c2c51b587f429b7bc475aa
tree    945739cf23e176d9a2f4c34376cb87fd7f457ed0
parent  acdd2387c34e34d786672bfa6904d4f85f8dfb0d
...
94
95
96
97
 
98
99
100
...
94
95
96
 
97
98
99
100
0
@@ -94,7 +94,7 @@
0
   background-color: #FFFFFF;
0
 }
0
 
0
-th {
0
+th, thead td {
0
   border-bottom: none;
0
   background-color: #E5E5E5;
0
   text-align: left;
...
13
14
15
 
 
 
 
 
 
 
 
 
 
16
17
18
...
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
0
@@ -13,6 +13,16 @@
0
 
0
 h2. Binaries and Source Code
0
 
0
+h3. buildr 1.3.0-incubating (2008-05-01)
0
+
0
+|_. Package |_. MD5 Checksum |_. PGP |
0
+| "buildr-1.3.0-incubating.gem":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.gem | "37758d0a8dabc570799b0a58d23d19f0":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.gem.md5 | "Sig":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.gem.asc |
0
+| "buildr-1.3.0-java-incubating.gem":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-java-incubating.gem | "6a3a86740077f739c111514e0e2b9e06":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-java-incubating.gem.md5 | "Sig":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-java-incubating.gem.asc |
0
+| "buildr-1.3.0-incubating.tgz":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.tgz | "acd84ad8c5031962e65b0036f3bc2e76":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.tgz.md5 | "Sig":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.tgz.asc |
0
+| "buildr-1.3.0-incubating.zip":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.zip | "d85945f05efd0e512e6d769e3dd1cc98":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.zip.md5 | "Sig":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/buildr-1.3.0-incubating.zip.asc |
0
+
0
+p>. ("Release signing keys":http://www.apache.org/dist/incubator/buildr/1.3.0-incubating/KEYS)
0
+
0
 
0
 p(note). When downloading from files please check the
0
 "md5sum":http://www.apache.org/dev/release-signing#md5 and verify the
...
72
73
74
75
76
 
77
78
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
81
82
83
...
100
101
102
 
103
104
105
 
106
107
108
...
120
121
122
123
 
124
125
126
...
72
73
74
 
 
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
...
122
123
124
125
126
 
 
127
128
129
130
...
142
143
144
 
145
146
147
148
0
@@ -72,11 +72,33 @@
0
     puts 'Done'
0
   end
0
 
0
-
0
- task 'distro-links'=>['staged/site', 'apache:sign'] do |task, args|
0
+ task 'distro-links'=>'staged/distro' do |task, args|
0
     url = args.incubating ? "http://www.apache.org/dist/incubator/#{spec.name}/#{spec.version}-incubating" :
0
       "http://www.apache.org/dist/#{spec.name}/#{spec.version}"
0
     rows = FileList['staged/distro/*.{gem,tgz,zip}'].map { |pkg|
0
+ name, md5 = File.basename(pkg), MD5.file(pkg).to_s
0
+ %{| "#{name}":#{url}/#{name} | "#{md5}":#{url}/#{name}.md5 | "Sig":#{url}/#{name}.asc |}
0
+ }
0
+ textile = <<-TEXTILE
0
+h3. #{spec.name} #{spec.version}#{args.incubating && "-incubating"} (#{Time.now.strftime('%Y-%m-%d')})
0
+
0
+|_. Package |_. MD5 Checksum |_. PGP |
0
+#{rows.join("\n")}
0
+
0
+p>. ("Release signing keys":#{url}/KEYS)
0
+ TEXTILE
0
+ file_name = 'doc/pages/download.textile'
0
+ print "Adding download links to #{file_name} ... "
0
+ modified = File.read(file_name).sub(/h2.*binaries.*source.*/i) { |header| "#{header}\n\n#{textile}" }
0
+ File.open file_name, 'w' do |file|
0
+ file.write modified
0
+ end
0
+ puts 'Done'
0
+ end
0
+
0
+=begin
0
+ task 'distro-links'=>['staged/site', 'apache:sign'] do |task, args|
0
+ rows = FileList['staged/distro/*.{gem,tgz,zip}'].map { |pkg|
0
       name, md5 = File.basename(pkg), File.read("#{pkg}.md5").split.first
0
       <<-HTML
0
       <tr>
0
0
@@ -100,9 +122,9 @@
0
       file.write modified
0
     end
0
   end
0
+=end
0
 
0
- file 'staged/site'=>'site' do
0
- mkpath 'staged'
0
+ file 'staged/site'=>['distro-links', 'staged', 'site'] do
0
     rm_rf 'staged/site'
0
     cp_r 'site', 'staged'
0
   end
0
@@ -120,7 +142,7 @@
0
 
0
 
0
 task 'stage:check'=>['apache:license', 'apache:check']
0
-task 'stage:prepare'=>['staged/distro', 'staged/site', 'apache:distro-links'] do |task|
0
+task 'stage:prepare'=>['staged/distro', 'staged/site''] do |task|
0
   # Since this requires input (passphrase), do it at the very end.
0
   task.enhance do
0
     task('apache:sign').invoke

Comments

    No one has commented yet.