3 if [ -z "$1" -o -n "$2" ]; then
4 echo "Usage: $0 project_name" >&2
10 cd "`dirname \"$0\"`" &&
11 rm -rf "$HOME/tmp/$project_name" &&
12 cp -ap project_template "$HOME/tmp/$project_name" &&
14 cd "$HOME/tmp/$project_name" &&
15 mv project "$project_name" &&
17 replace '{project}' "$project_name" .gitignore README.rst \
18 devscripts/README.html docs/genapidocs docs/install.rst \
19 mk-distr publish-docs setup.py tox.ini &&
21 sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \
22 -v0.0 -r0.0.1 --ext-autodoc --makefile --no-batchfile -q docs &&
25 echo /publish-docs >>.git/info/exclude &&
26 echo /update-remotes >>.git/info/exclude &&
28 git commit --message "Initial commit - created the project" &&
29 git config htdocs.path "$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/"$project_name"/docs &&
30 cp -p "$HOME"/current/projects/m_lib/update-remotes . &&