51322682fab678dd59ea05b5a4b5a41fcf87e146
[cookiecutter.git] / cookiecutter
1 #! /bin/sh
2
3 if [ -z "$1" -o -n "$2" ]; then
4    echo "Usage: $0 project_name" >&2
5    exit 1
6 fi
7
8 project_name="$1"
9
10 cd "`dirname \"$0\"`" &&
11 rm -rf "$HOME/tmp/$project_name" &&
12 cp -ap project_template "$HOME/tmp/$project_name" &&
13
14 cd "$HOME/tmp/$project_name" &&
15 mv project "$project_name" &&
16
17 replace -i "template project" "$project_name" README.txt setup.py &&
18 replace project "$project_name" docs/genapidocs mk-distr publish-docs setup.py &&
19
20 sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \
21    -v0.0 -r0.0.1 --ext-autodoc --makefile --no-batchfile -q docs &&
22
23 exec git init