Merge tag '0.0.1' into develop

Première version de Tamarin
This commit is contained in:
wpetit 2016-09-22 09:10:51 +02:00
commit 0028db764a
1 changed files with 7 additions and 1 deletions

View File

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