Skip to content
Snippets Groups Projects
Commit 2b256d90 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

allow to pass version at configure script

parent 166078f9
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ Fine tunning of scandir configuration: ...@@ -24,6 +24,7 @@ Fine tunning of scandir configuration:
--USE_ENVIRONMENT=BOOLEAN Launch the scandir with a environment [!yes] --USE_ENVIRONMENT=BOOLEAN Launch the scandir with a environment [!yes]
--NOTIFY=BOOLEAN use notification [!yes] --NOTIFY=BOOLEAN use notification [!yes]
--VERBOSITY_LEVEL=BOOLEAN level of verbosity [!3] --VERBOSITY_LEVEL=BOOLEAN level of verbosity [!3]
--version=VALUE version of the service[0.0.1]
Use yes or no with lowercase character to set BOOLEAN values. Use yes or no with lowercase character to set BOOLEAN values.
...@@ -96,6 +97,7 @@ LOGGER='!yes' ...@@ -96,6 +97,7 @@ LOGGER='!yes'
USE_ENVIRONMENT='!yes' USE_ENVIRONMENT='!yes'
NOTIFY='!yes' NOTIFY='!yes'
VERBOSITY_LEVEL='!3' VERBOSITY_LEVEL='!3'
version='0.0.1'
for arg ; do for arg ; do
case "$arg" in case "$arg" in
...@@ -111,6 +113,7 @@ for arg ; do ...@@ -111,6 +113,7 @@ for arg ; do
--USE_ENVIRONMENT=*) USE_ENVIRONMENT=${arg#*=} ;; --USE_ENVIRONMENT=*) USE_ENVIRONMENT=${arg#*=} ;;
--NOTIFY=*) NOTIFY=${arg#*=} ;; --NOTIFY=*) NOTIFY=${arg#*=} ;;
--VERBOSITY_LEVEL=*) VERBOSITY_LEVEL=${arg#*=} ;; --VERBOSITY_LEVEL=*) VERBOSITY_LEVEL=${arg#*=} ;;
--version=*) version=${arg#*=} ;;
-* ) echo "$0: unknown option $arg" ;; -* ) echo "$0: unknown option $arg" ;;
*=*) ;; *=*) ;;
*) target=$arg ;; *) target=$arg ;;
...@@ -171,9 +174,8 @@ cat << EOF ...@@ -171,9 +174,8 @@ cat << EOF
# This file was generated by: # This file was generated by:
# $cmdline # $cmdline
# Any changes made here will be lost if configure is re-run. # Any changes made here will be lost if configure is re-run.
package := $package
version := $version version := $version
package := $package
prefix := $prefix prefix := $prefix
exec_prefix := $exec_prefix exec_prefix := $exec_prefix
bindir := $bindir bindir := $bindir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment