File: Rakefile

package info (click to toggle)
shelr 0.16.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 260 kB
  • ctags: 63
  • sloc: ruby: 679; sh: 26; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 420 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'

desc 'Run all specs in spec directory'
RSpec::Core::RakeTask.new

task :merge do
  File.open('shelr', 'a+') { |f| f.puts "#/usr/bin/env ruby" }
  `cat lib/shelr.rb lib/shelr/* bin/shelr | grep -v autoload >> shelr`
  `chmod +x ./shelr`
end

task :man do
  `bundle exec ronn shelr.1.ronn`
  `rm shelr.1.html`
end

task :default => :spec