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:
--USE_ENVIRONMENT=BOOLEAN Launch the scandir with a environment [!yes]
--NOTIFY=BOOLEAN use notification [!yes]
--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.
......@@ -96,6 +97,7 @@ LOGGER='!yes'
USE_ENVIRONMENT='!yes'
NOTIFY='!yes'
VERBOSITY_LEVEL='!3'
version='0.0.1'
for arg ; do
case "$arg" in
......@@ -111,6 +113,7 @@ for arg ; do
--USE_ENVIRONMENT=*) USE_ENVIRONMENT=${arg#*=} ;;
--NOTIFY=*) NOTIFY=${arg#*=} ;;
--VERBOSITY_LEVEL=*) VERBOSITY_LEVEL=${arg#*=} ;;
--version=*) version=${arg#*=} ;;
-* ) echo "$0: unknown option $arg" ;;
*=*) ;;
*) target=$arg ;;
......@@ -171,9 +174,8 @@ cat << EOF
# This file was generated by:
# $cmdline
# Any changes made here will be lost if configure is re-run.
package := $package
version := $version
package := $package
prefix := $prefix
exec_prefix := $exec_prefix
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