Skip to content

Commit

Permalink
Merge pull request soffes#92 from willpragnell/master
Browse files Browse the repository at this point in the history
DRY out rakefile a little bit
  • Loading branch information
soffes committed Mar 3, 2013
2 parents 01b1008 + 025e567 commit fa9449a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ class String
end
end

desc 'Setup with example files and dummy fonts'
task :setup do
# Update and initialize the submodules in case they forget
desc 'Update and initialize the submodules'
task :update_submodules do
puts 'Updating submodules...'.cyan
`git submodule update --init --recursive`
end

desc 'Setup with example files and dummy fonts'
task :setup => :update_submodules do
# Copy examples defines
puts 'Copying example CDIDefines into place...'.cyan
`cp Other\\ Sources/CDIDefinesExample.h Other\\ Sources/CDIDefines.h`
Expand All @@ -38,13 +40,8 @@ end
# Run setup by default
task :default => :setup


desc 'Setup with private files'
task :'setup:private' do
# Update and initialize the submodules in case they forget
puts 'Updating submodules...'.cyan
`git submodule update --init --recursive`

task :'setup:private' => :update_submodules do
# Copy defines
puts 'Copying example CDIDefines into place...'.cyan
`cp ../cheddar-private/iOS/CDIDefines.* Other\\ Sources/`
Expand Down

0 comments on commit fa9449a

Please sign in to comment.