-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathRakefile
30 lines (24 loc) · 784 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# coding: utf-8
require 'rubygems'
require 'rake/clean'
PWD = File.join(File.dirname(__FILE__))
# Compiled AppleScript scripts
CLEAN.include('*.scpt', '*.scptd')
CLOBBER.include('Documentation')
SRC = FileList['*.applescript']
OBJ = SRC.ext('scpt')
task :default => ["build"]
rule '.scpt' => '.applescript' do |t|
sh "osacompile -x -o '#{t.name}' '#{t.source}'" # do |ok,res|
end
desc "Build project."
task :build do
app = 'KeychainCSV.app'
sh "osacompile -x -o '#{app}' 'CSVKeychain.applescript'"
end
desc "Build the documentation using HeaderDoc"
task :doc do
# Set LANG to get rid of warnings about missing default encoding
sh "env LANG=en_US.UTF-8 headerdoc2html -q -o Documentation CSVKeychain.applescript"
sh "env LANG=en_US.UTF-8 gatherheaderdoc Documentation"
end