diff --git a/defaults b/defaults new file mode 100644 index 0000000..c32a5e2 --- /dev/null +++ b/defaults @@ -0,0 +1,6 @@ +author="Antonio J. Delgado" +authoring_date=$(date +%Y) +project_name="Project Name" +project_codename="project-codename" +version=0.0.1 +deployment_path="${HOME}/repos/" \ No newline at end of file diff --git a/deploy_new_python_project.sh b/deploy_new_python_project.sh new file mode 100644 index 0000000..51cb43e --- /dev/null +++ b/deploy_new_python_project.sh @@ -0,0 +1,41 @@ +#!/bin/bash +-e defaults && . defaults +while [ $# -gt 0 ] +do + case "$1" in + "--author") + shift + DESTINATION="${1}" + shift + ;; + "--authoring-date") + shift + authoring_date="${1}" + shift + ;; + "--project-name") + shift + project_name="${1}" + ;; + "--project-codename") + shift + project_codename="${1}" + shift + ;; + "--version") + shift + version="${1}" + shift + ;; +"--deployment-path") + shift + deployment_path="${1}" + shift + ;; + + *) + echo "Ignoring unknwon parameter '${1}'" + shift + ;; + esac +done \ No newline at end of file