Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 30 lines (24 sloc) 0.585 kb
950a7ab1 » jaz303
2009-12-21 added packaging tasks to speed up releases
1 PROJECT_NAME='tipsy'
95a24735 » jaz303
2010-05-06 Version 1.0.0a
2 PROJECT_VERSION='1.0.0a'
950a7ab1 » jaz303
2009-12-21 added packaging tasks to speed up releases
3 MANIFEST=%w(src LICENSE README)
4
5 def project_tag
6 "#{PROJECT_NAME}-#{PROJECT_VERSION}"
7 end
8
9 def target
10 File.join('pkg', project_tag)
11 end
4ecec05d » jaz303
2008-08-02 reorganised docs. fixed small bug with fade-in
12
0206ecb3 » jaz303
2009-12-21 package task
13 task :clean do
14 `rm -rf pkg`
15 end
16
3d75abb7 » jaz303
2010-04-27 massive refactor. added ability to manually trigger tooltips. closes #9
17 task :docs do
18 `cd docs && project-kit --target=archive build src build`
19 end
20
950a7ab1 » jaz303
2009-12-21 added packaging tasks to speed up releases
21 task :build => :clean do
22 `mkdir -p #{target}`
23 `cd docs && project-kit --target=archive build src build`
24 `mv docs/build #{target}/docs`
25 MANIFEST.each { |e| `cp -R #{e} #{target}/` }
4ecec05d » jaz303
2008-08-02 reorganised docs. fixed small bug with fade-in
26 end
27
950a7ab1 » jaz303
2009-12-21 added packaging tasks to speed up releases
28 task :package => :build do
29 `cd pkg && zip -ro ../#{project_tag}.zip #{project_tag}`
30 end
Something went wrong with that request. Please try again.