Ajout flag pour afficher la version de Tamarin

This commit is contained in:
wpetit 2016-09-22 09:09:55 +02:00
parent 0ca55f3208
commit 92b39b9887

View File

@ -2,6 +2,7 @@
set -e
TAMARIN_VERSION=0.0.1
TAMARIN_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
BASE_DIR="$TAMARIN_DIR" source "$TAMARIN_DIR/lib/util.sh"
@ -15,6 +16,7 @@ function show_usage {
echo "Parameters: "
echo
echo " -p Path to the project to build"
echo " -v Optional : Show Tamarin version"
echo " -a Optional : Target architecture (default amd64)"
echo " -d Optional : Destination of the builed packages (default ./packages)"
echo " -i Optional : Name of the Docker image to use for build (default: debian:jessie)"
@ -121,7 +123,7 @@ function main {
#
# Parsing options
#
while getopts "kp:d:i:B:t:a:o:" option
while getopts "vkp:d:i:B:t:a:o:" option
do
case $option in
k)
@ -145,6 +147,10 @@ do
a)
TARGET_ARCH=${OPTARG}
;;
v)
echo "Tamarin v${TAMARIN_VERSION}"
exit
;;
*)
show_usage
;;