Sha256: 855b8a3f8a2b09dd1a0511b1edf843df501ff933711d31c0f720b859addc610d

Contents?: true

Size: 904 Bytes

Versions: 6

Compression:

Stored size: 904 Bytes

Contents

desc 'copy sty/* files from current Re:VIEW source code (in git repos)'
REVIEW_TEMPLATE = ENV['REVIEW_TEMPLATE'] || 'review-jsbook'
task :copy_sty do
  review_rootdir = '../..'
  template_dir = File.join(review_rootdir, "templates/latex/#{REVIEW_TEMPLATE}")
  Dir.glob(File.join(template_dir, '*.cls')) do |file|
    FileUtils.cp(file, 'sty')
  end
  Dir.glob(File.join(template_dir, 'review-*.sty')) do |file|
    FileUtils.cp(file, 'sty')
  end

  if REVIEW_TEMPLATE == 'review-jsbook'
    jsbook_dir = File.join(review_rootdir, 'vendor/jsclasses')
    FileUtils.cp(File.join(jsbook_dir, 'jsbook.cls'), 'sty/jsbook.cls')
    gentombow_dir = File.join(review_rootdir, 'vendor/gentombow')
    FileUtils.cp(File.join(gentombow_dir, 'gentombow.sty'), 'sty/gentombow.sty')
  end
end

CLEAN.include([Dir.glob('sty/review-*.sty'), 'sty/*.cls', 'sty/gentombow.sty'])

Rake::Task[BOOK_PDF].enhance([:copy_sty])

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
review-5.1.1 samples/syntax-book/lib/tasks/z01_copy_sty.rake
review-5.1.0 samples/syntax-book/lib/tasks/z01_copy_sty.rake
review-5.0.0 samples/syntax-book/lib/tasks/z01_copy_sty.rake
review-4.2.0 samples/syntax-book/lib/tasks/z01_copy_sty.rake
review-4.1.0 samples/syntax-book/lib/tasks/z01_copy_sty.rake
review-4.0.0 samples/syntax-book/lib/tasks/z01_copy_sty.rake