Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (24 sloc) 0.585 kb
950a7ab Jason Frame added packaging tasks to speed up releases
jaz303 authored
1 PROJECT_NAME='tipsy'
95a2473 Jason Frame Version 1.0.0a
jaz303 authored
2 PROJECT_VERSION='1.0.0a'
950a7ab Jason Frame added packaging tasks to speed up releases
jaz303 authored
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
4ecec05 Jason Frame reorganised docs. fixed small bug with fade-in
jaz303 authored
12
0206ecb Jason Frame package task
jaz303 authored
13 task :clean do
14 `rm -rf pkg`
15 end
16
3d75abb Jason Frame massive refactor. added ability to manually trigger tooltips. closes #9
jaz303 authored
17 task :docs do
18 `cd docs && project-kit --target=archive build src build`
19 end
20
950a7ab Jason Frame added packaging tasks to speed up releases
jaz303 authored
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}/` }
4ecec05 Jason Frame reorganised docs. fixed small bug with fade-in
jaz303 authored
26 end
27
950a7ab Jason Frame added packaging tasks to speed up releases
jaz303 authored
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.