Add initial scripts

This commit is contained in:
Antonio J. Delgado 2021-01-13 10:46:46 +02:00
parent a6dac8aaad
commit 599df44d89
2 changed files with 47 additions and 0 deletions

6
defaults Normal file
View 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/"

View 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