X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=blobdiff_plain;f=cookiecutter;h=c23664ce5ee75d61d7b78c0436ffb235b627ed62;hp=34e5cfe944b63dfcd771ba0c04c92d57202c8fba;hb=d1b4c005b7f4b2209bdd9cb3431270b04d0b922b;hpb=f488fd482a6b96ce7ef7f2654962fdb326ccda5e diff --git a/cookiecutter b/cookiecutter index 34e5cfe..c23664c 100755 --- a/cookiecutter +++ b/cookiecutter @@ -14,11 +14,18 @@ cp -ap project_template "$HOME/tmp/$project_name" && cd "$HOME/tmp/$project_name" && mv project "$project_name" && -replace -i "template project" "$project_name" README.txt setup.py && -replace project "$project_name" docs/genapidocs mk-distr publish-docs setup.py tox.ini && +replace '{project}' "$project_name" .gitignore README.txt \ + devscripts/README.html docs/genapidocs docs/install.rst \ + 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" +git init && +echo /publish-docs >>.git/info/exclude && +echo /update-remotes >>.git/info/exclude && +git add . && +git commit --message "Initial commit - created the project" && +git config htdocs.path "$HOME"/Internet/WWW/htdocs/phdru.name/Software/Python/"$project_name"/docs && +cp -p "$HOME"/current/projects/m_lib/update-remotes . && +exec ./mk-git-aliases