From 599df44d8994f82c7b8041dab127a716e064ab74 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 13 Jan 2021 10:46:46 +0200 Subject: [PATCH] Add initial scripts --- defaults | 6 ++++++ deploy_new_python_project.sh | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 defaults create mode 100644 deploy_new_python_project.sh 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