Skip to content
This repository
Browse code

Update Rakefile

  • Loading branch information...
commit 0fc59a772c750841a5f4396630ca0fe87905ccc0 1 parent 24f92a1
Vicent Marti authored

Showing 1 changed file with 8 additions and 20 deletions. Show diff stats Hide diff stats

  1. +8 20 Rakefile
28 Rakefile
@@ -3,7 +3,7 @@ require 'rake/clean'
3 3 require 'rake/extensiontask'
4 4 require 'digest/md5'
5 5
6   -task :default => :test
  6 +task :default => [:checkout, :test]
7 7
8 8 # ==========================================================
9 9 # Ruby Extension
@@ -11,6 +11,13 @@ task :default => :test
11 11
12 12 Rake::ExtensionTask.new('redcarpet')
13 13
  14 +task :checkout do |t|
  15 + unless File.exists?('sundown/src/markdown.h')
  16 + sh 'git submodule init'
  17 + sh 'git submodule update'
  18 + end
  19 +end
  20 +
14 21 # ==========================================================
15 22 # Testing
16 23 # ==========================================================
@@ -109,22 +116,3 @@ task :update_gem do
109 116 puts "updated #{GEMFILE}"
110 117 end
111 118
112   -desc 'Gather required Sundown sources into extension directory'
113   -task :gather => 'sundown/src/markdown.h' do |t|
114   - files =
115   - FileList[
116   - 'sundown/src/{markdown,buffer,stack,autolink,html_blocks}.h',
117   - 'sundown/src/{markdown,buffer,stack,autolink}.c',
118   - 'sundown/html/{html,html_smartypants,houdini_html_e,houdini_href_e}.c',
119   - 'sundown/html/{html,houdini}.h',
120   - ]
121   - cp files, 'ext/redcarpet/',
122   - :preserve => true,
123   - :verbose => true
124   -end
125   -
126   -file 'sundown/src/markdown.h' do |t|
127   - abort "The Sundown submodule is required."
128   -end
129   -
130   -

0 comments on commit 0fc59a7

Please sign in to comment.
Something went wrong with that request. Please try again.