Skip to content

Instantly share code, notes, and snippets.

@cmattoon
Created April 4, 2014 20:35
Show Gist options
  • Save cmattoon/9982643 to your computer and use it in GitHub Desktop.
Save cmattoon/9982643 to your computer and use it in GitHub Desktop.
#!/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