Add initial scripts
This commit is contained in:
parent
a6dac8aaad
commit
599df44d89
2 changed files with 47 additions and 0 deletions
6
defaults
Normal file
6
defaults
Normal file
|
@ -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/"
|
41
deploy_new_python_project.sh
Normal file
41
deploy_new_python_project.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue