diff options
| author | Joshua Peek <josh@joshpeek.com> | 2011-06-13 17:28:30 -0500 |
|---|---|---|
| committer | Joshua Peek <josh@joshpeek.com> | 2011-06-13 17:35:17 -0500 |
| commit | 664810a6cb727df6c1b4faf6c87d4e1624c502d4 (patch) | |
| tree | e3f656bcbd42cf9b5298be1f556e0cb27d0a36b4 /Rakefile | |
| parent | 22cb0d977b6586efbb763051389d8637b820b3f0 (diff) | |
Use GH vendored pygments
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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' |
