[DEBUG] coorect the tag version

This commit is contained in:
Edouard DUPIN 2015-12-03 21:47:54 +01:00
parent 5f38706175
commit 7be7a16357
4 changed files with 2 additions and 26 deletions

View File

@ -1,21 +0,0 @@
#!/bin/bash
usage()
{
echo -e "$0 [TAG]"
echo -e "\t\t[TAG] : Tag to set on the version"
exit -1
}
#verify all input parameters :
tag=""
if [ "$1" = "" ] ; then
usage
else
tag="$1"
fi
echo -n $tag > tag
git commit -a -m "Update version tag : $tag"
git tag $tag

View File

@ -25,7 +25,7 @@ def get_maintainer():
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
def get_version():
return [0,0,0]
return [0,9,"dev"]
def create(target, module_name):
# module name is 'edn' and type binary.
@ -255,10 +255,8 @@ def create(target, module_name):
my_module.add_path(tools.get_current_path(__file__))
tagFile = tools.get_current_path(__file__) + "/tag"
ewolVersionID = tools.file_read_data(tagFile)
my_module.compile_flags('c++', [
"-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\""
"-DEWOL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
])
return my_module

0
monk_ewol.py Executable file → Normal file
View File

1
tag
View File

@ -1 +0,0 @@
0.9.8-dev