Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (31 sloc) 1 KB
class String
def self.colorize(text, color_code)
"\e[#{color_code}m#{text}\e[0m"
end
def cyan
self.class.colorize(self, 36)
end
def green
self.class.colorize(self, 32)
end
end
desc 'Setup private files so it will compile'
task :setup do
puts 'Updating submodules...'.cyan
# Update and initialize the submodules in case they forget
`git submodule update --init --recursive`
puts 'Copying example CDIDefines into place...'.cyan
# Copy examples defines
`cp Other\\ Sources/CDIDefinesExample.h Other\\ Sources/CDIDefines.h`
`cp Other\\ Sources/CDIDefinesExample.m Other\\ Sources/CDIDefines.m`
puts 'Creating dummy fonts...'.cyan
# Make placeholder fonts
`mkdir -p Resources/Fonts`
`touch Resources/Fonts/Gotham-Bold.otf`
`touch Resources/Fonts/Gotham-BoldItalic.otf`
`touch Resources/Fonts/Gotham-Book.otf`
`touch Resources/Fonts/Gotham-BookItalic.otf`
puts 'Done! You\'re ready to get started!'.green
end
# Run setup by default
task :default => :setup