X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=blobdiff_plain;f=cookiecutter;fp=cookiecutter;h=936caffe3ad085e7109e55897dde04ee437e0a58;hp=0000000000000000000000000000000000000000;hb=288a633332517df4d38ae1511a854db39ccdd687;hpb=d15f85bc0e619e222f849804eec6c30e7c762c90 diff --git a/cookiecutter b/cookiecutter new file mode 100755 index 0000000..936caff --- /dev/null +++ b/cookiecutter @@ -0,0 +1,21 @@ +#! /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" && +replace -i "template project" "$project_name" README.txt setup.py && +replace project "$project_name" docs/genapidocs mk-distr publish-docs setup.py && + +sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \ + -v0.0 -r0.0.1 --ext-autodoc --makefile --no-batchfile -q docs && + +exec git init