Created
April 14, 2011 18:28
-
-
Save prakhar1989/920143 to your computer and use it in GitHub Desktop.
Bash script to generate to simple file structure for sinatra
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/bash | |
#tr -d '\15' < f1.bash > f2.bash - (windows/cygwin complications - porting to UNIX file type to add newline chars) | |
[[ $# -ne 1 ]] && { | |
echo "Error: requires a folder name"; | |
exit 1; | |
} | |
mkdir -p $1/public/javascripts $1/public/stylesheets $1/views | |
cd $1 | |
touch app.rb | |
touch README.markdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment