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