[DEBUG] coorect the tag version
This commit is contained in:
parent
5f38706175
commit
7be7a16357
21
createTag.sh
21
createTag.sh
@ -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
|
@ -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
0
monk_ewol.py
Executable file → Normal file
Loading…
Reference in New Issue
Block a user