Created
April 4, 2014 20:35
-
-
Save cmattoon/9982643 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [ ! -z "$1" ]; then | |
if [ ! -d "$1" ]; then | |
mkdir "$1" | |
mkdir "$1/bin" | |
mkdir "$1/docs" | |
mkdir "$1/tests" | |
mkdir "$1/$1" | |
touch "$1/README.md" | |
touch "$1/LICENSE" | |
touch "$1/setup.py" | |
touch "$1/$1/__init__.py" | |
touch "$1/tests/__init__.py" | |
else | |
echo "Directory $1 already exists" | |
exit 1 | |
fi | |
else | |
echo "You must specify a project name" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment