-
Notifications
You must be signed in to change notification settings - Fork 27
/
Rakefile
29 lines (23 loc) · 666 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
# -*- ruby -*-
require 'rubygems'
require 'hoe'
gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"
Hoe.plugin :debugging
Hoe.plugin :git
Hoe.plugin :minitest
HOE = Hoe.spec('nfc') do
developer('Aaron Patterson', '[email protected]')
self.readme_file = 'README.rdoc'
self.history_file = 'CHANGELOG.rdoc'
self.extra_rdoc_files = FileList['*.rdoc']
self.spec_extras = { :extensions => ["ext/nfc/extconf.rb"] }
end
RET = Rake::ExtensionTask.new("nfc", HOE.spec) do |ext|
ext.lib_dir = File.join('lib', 'nfc')
end
task :kill do
pid = `sudo launchctl list | grep pcscd`[/^\d+/]
`sudo kill #{pid}` if pid
end
# vim: syntax=Ruby