#! /bin/sh if [ -z "$1" -o -n "$2" ]; then echo "Usage: $0 project_name" >&2 exit 1 fi project_name="$1" cd "`dirname \"$0\"`" && rm -rf "$HOME/tmp/$project_name" && cp -ap project_template "$HOME/tmp/$project_name" && cd "$HOME/tmp/$project_name" && mv project "$project_name" && replace '{project}' "$project_name" .gitignore README.txt \ docs/genapidocs mk-distr publish-docs setup.py tox.ini && sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \ -v0.0 -r0.0.1 --ext-autodoc --makefile --no-batchfile -q docs && git init && git add . && exec git commit --message "Initial commit - created the project"