This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -wKU | |
text_source = ARGV[0] || 'ipsum' | |
filename = File.join(File.dirname(__FILE__), text_source + '.txt') | |
copy_to_use = File.read(filename) | |
if text_source == 'ipsum' | |
chopped_copy = copy_to_use.scan(/.*?[.!?](?:\s|$)/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clear out stuff we won't use | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/robots.txt" | |
run "rm -f public/javascripts/*" | |
run "rm -rf test/" | |
# Create the readme file | |
run "echo TODO: Explain yourself! > README.markdown" |
NewerOlder