Skip to content

Instantly share code, notes, and snippets.

@prakhar1989
Created April 14, 2011 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prakhar1989/920143 to your computer and use it in GitHub Desktop.
Save prakhar1989/920143 to your computer and use it in GitHub Desktop.
Bash script to generate to simple file structure for sinatra
#!/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