Sha256: 62cf2851a00dd33e28bee14874ab0e9a17b845b0604996f02cc0d812de94f6a1

Contents?: true

Size: 625 Bytes

Versions: 13

Compression:

Stored size: 625 Bytes

Contents

#!/usr/bin/env ruby
# Initialize a ScholarMarkdown article project

require 'fileutils'
templatedir = File.dirname(__FILE__) + '/template'

targetdir = ARGV[0]
if not targetdir
  puts 'No target directory name was given'
  exit(1)
end
if File.exists?(targetdir)
  puts 'The target directory already exists'
  exit(1)
end

puts 'Initializing project at ' + targetdir
Dir.mkdir(targetdir)
FileUtils.copy_entry(templatedir, targetdir)

type = ARGV[1]
if type == 'acm'
  # Override with ACM-specific files
  templatediracm = File.dirname(__FILE__) + '/template_override_acm'
  FileUtils.copy_entry(templatediracm, targetdir)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
scholarmarkdown-3.0.1 bin/generate-scholarmarkdown
scholarmarkdown-3.0.0 bin/generate-scholarmarkdown
scholarmarkdown-2.11.0 bin/generate-scholarmarkdown
scholarmarkdown-2.10.1 bin/generate-scholarmarkdown
scholarmarkdown-2.10.0 bin/generate-scholarmarkdown
scholarmarkdown-2.9.0 bin/generate-scholarmarkdown
scholarmarkdown-2.8.0 bin/generate-scholarmarkdown
scholarmarkdown-2.7.0 bin/generate-scholarmarkdown
scholarmarkdown-2.6.0 bin/generate-scholarmarkdown
scholarmarkdown-2.5.0 bin/generate-scholarmarkdown
scholarmarkdown-2.4.0 bin/generate-scholarmarkdown
scholarmarkdown-2.3.0 bin/generate-scholarmarkdown
scholarmarkdown-2.2.0 bin/generate-scholarmarkdown