Created
          September 19, 2015 16:34 
        
      - 
      
- 
        Save trey/5d7e0e7c3d32e9bc1212 to your computer and use it in GitHub Desktop. 
    Script to install a new Blank project.
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | function blank() { | |
| # Create a new project based on | |
| # https://github.com/trey/blank | |
| if [ -d $HOME/Code/blank ]; then | |
| if [ $# -eq 1 ]; then | |
| echo "Installing a new project based on Blank." | |
| git clone ~/Code/Blank $1 | |
| cd $1 | |
| script/setup | |
| rm -rf .git | |
| echo "# My Project" > README.md | |
| echo "#!/bin/bash" > script/bootstrap | |
| echo "echo \"Nothing to do.\"" >> script/bootstrap | |
| echo "echo \"Edit your script/bootstrap.\"" >> script/bootstrap | |
| git init | |
| git add . | |
| git commit -m "Starting point based on Trey's Blank Slate." | |
| else | |
| echo "Please try again with a name for your new project." | |
| fi | |
| else | |
| echo "You don't have Blank installed." | |
| echo "Run the following commands ..." | |
| echo "mkdir -p ~/Code" | |
| echo "cd ~/Code" | |
| echo "git clone [email protected]:trey/blank.git" | |
| echo "... and try again." | |
| fi | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment