GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Motto-mysql is a complementary library to enhance and make faster 'mysql-ruby' library.
Clone URL: git://github.com/kwatch/motto-mysql.git
Add 'website/index.html' and 'website/style.css'.
kwatch (author)
Sun Oct 05 08:00:58 -0700 2008
commit  05125d09574ebb2cb4d02b2f2c94033ec9c02cd4
tree    cddf0c0585d22076d83ec126da64f996567c7c54
parent  457ada89ef93e8379d378dc8c03940da2782185c
...
1
 
 
 
 
 
 
 
 
 
 
 
2
3
4
5
6
7
 
8
9
10
...
136
137
138
139
140
141
142
143
 
144
145
146
...
155
156
157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
159
160
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
18
19
20
21
...
147
148
149
 
 
 
 
 
150
151
152
153
...
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
0
@@ -1,10 +1,21 @@
0
 
0
+preparation*: |
0
+
0
+ def edit_content(content)
0
+ content.gsub!(/\$Release\$/, @release)
0
+ content.gsub!(/\$Release:.*?\$/, "$Release: #{@release} $")
0
+ content.gsub!(/\$Copyright.*?\$/, @copyright)
0
+ content.gsub!(/\$License.*?\$/, @license)
0
+ content
0
+ end
0
+
0
+
0
 properties:
0
 
0
   - project :  motto-mysql
0
   - target :  motto_mysql
0
   - release :  0.1.0
0
- - copyright : copyright(c) 2006-2008 kuwata-lab all rights reserved.
0
+ - copyright : copyright(c) 2008 kuwata-lab.com all rights reserved.
0
   - license :  "License: Ruby's license"
0
   #- mysql_ruby_version: '2.7.4'
0
   #- mysql_ruby_version: '2.7.5'
0
@@ -136,11 +147,7 @@ recipes:
0
   store 'ext/**/*', 'test/**/*', dir
0
   ## edit files
0
         edit "#{dir}/**/*" do |content|
0
- content.gsub!(/\$Release\$/, "$(release)")
0
- content.gsub!(/\$Release:.*?\$/, "$Release: $(release) $")
0
- content.gsub!(/\$Copyright.*?\$/, "$(copyright)")
0
- content.gsub!(/\$License.*?\$/, "$(license)")
0
- content
0
+ edit_content(content)
0
   end
0
   ## create packages
0
   chdir "build" do
0
@@ -155,6 +162,44 @@ recipes:
0
   end
0
 
0
 
0
+ - product: :index
0
+ ingreds: [ website/index.html ]
0
+
0
+ - product: website/index.html
0
+ ingreds: [ README.txt ]
0
+ method*: |
0
+ mkdir "website" unless test(?d, "website")
0
+ download_url = "http://rubyforge.org/projects/$(project)/"
0
+ sys "rd2 #{@ingred} | tidy -q -i -wrap 9999 -ashtml > #{@product}"
0
+ edit @product do |content|
0
+ body = (content =~ /<body>.*<\/body>/m) && $&
0
+ #body.gsub! /<h1>.*<\/h1>/, "<h1>$(project): README.txt</h1>"
0
+ #body.gsub! /README-$(project)/, 'README'
0
+ body.gsub! /<!-- RDLabel: ".*" -->/, ''
0
+ body.gsub! /(<h\d>)<a name=".*?" id=".*?">/, '\1'
0
+ body.gsub! /<\/a>(<\/h\d>)/, '\1'
0
+ edit_content(body)
0
+ body.gsub! /copyright\(c\)/, 'copyright&copy;'
0
+ body.sub! /http:\/\/$(project)\.rubyforge\.org\//, '<a href="\&">\&</a><br />'
0
+ body.sub! /http:\/\/rubyforge.org\/projects\/$(project)\//, '<a href="\&">\&</a>'
0
+ #body.sub! /$(project)-$(release)\.tar\.gz/, "<a href=\"#{download_url}\">\\&</a>"
0
+ #body.sub! /CGI-Exception/, '<a href="http://cgi-exception.rubyforge.org/">\&</a>'
0
+ html = <<END
0
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
0
+ <html lang="en">
0
+ <head>
0
+ <title>$(project): README.txt</title>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=utf8">
0
+ <link rel="stylesheet" type="text/css" href="style.css">
0
+ </head>
0
+ #{body}
0
+ </html>
0
+ END
0
+ content[0..-1] = html
0
+ content
0
+ end
0
+
0
+
0
   - product:  :debug
0
     method*: |
0
   items = %w[string var_string int24 long longlong float double

Comments

    No one has commented yet.