X-Git-Url: https://git.phdru.name/?p=cookiecutter.git;a=blobdiff_plain;f=mk-project;h=eecfa53d03c23d52845f9a5fb7d49215c013ba7b;hp=a304e8d5e7c07b1b28448f3a7fc5d1359fd61105;hb=082bcece9ab1c60b169cd09160d19adb0bced630;hpb=bc00a09168b883b6a6595b997dac3a170f48567d diff --git a/mk-project b/mk-project index a304e8d..eecfa53 100755 --- a/mk-project +++ b/mk-project @@ -1,6 +1,6 @@ #! /bin/sh -if [ -z "$1" -o -n "$2" ]; then +if [ $# -ne 1 ]; then echo "Usage: $0 project_name" >&2 exit 1 fi @@ -22,10 +22,11 @@ sphinx-quickstart --project="$project_name" --author="Oleg Broytman" \ -v0.0 -r0.0.1 --ext-autodoc --makefile --no-batchfile -q docs && git init && +echo "$project_name" >.git/description && 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 +exec devscripts/mk-git-aliases