aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2011-06-13 17:28:30 -0500
committerJoshua Peek <josh@joshpeek.com>2011-06-13 17:35:17 -0500
commit664810a6cb727df6c1b4faf6c87d4e1624c502d4 (patch)
treee3f656bcbd42cf9b5298be1f556e0cb27d0a36b4 /Rakefile
parent22cb0d977b6586efbb763051389d8637b820b3f0 (diff)
Use GH vendored pygments
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 832efd8..cb7b899 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,5 +10,12 @@ end
CLOBBER.include 'lib/linguist/lexers.yml'
file 'lib/linguist/lexers.yml' do |f|
- sh "./bin/pygments-lexers > #{f.name}"
+ # GitHub vendored pygments path
+ # vendor/python/pygments
+ path = File.expand_path('../../../python/pygments', __FILE__)
+ ENV['PYTHONPATH'] = path if File.directory?(path)
+
+ sh "python ./bin/pygments-lexers > #{f.name}"
end
+
+task :lexers => 'lib/linguist/lexers.yml'