[DEV] set a real Tag Version
This commit is contained in:
parent
42984619d7
commit
e24a3f0d8f
2
build
2
build
@ -1 +1 @@
|
||||
Subproject commit b685e8442a30802718a5bcae77a1c0fc14c1fbba
|
||||
Subproject commit bb6e701bd869aafa0811557508bc524de8c323c5
|
21
sources/createTag.sh
Executable file
21
sources/createTag.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/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 "create a new release"
|
||||
git tag $tag
|
@ -44,12 +44,7 @@ std::string ewol::getBoardType(void) {
|
||||
}
|
||||
|
||||
std::string ewol::getVersion(void) {
|
||||
#define FIRST_YEAR (2011)
|
||||
std::string tmpOutput = std::to_string(date::getYear()-FIRST_YEAR);
|
||||
tmpOutput += ".";
|
||||
tmpOutput += std::to_string(date::getMonth());
|
||||
tmpOutput += ".";
|
||||
tmpOutput += std::to_string(date::getDay());
|
||||
tmpOutput = EWOL_VERSION;
|
||||
return tmpOutput;
|
||||
}
|
||||
|
||||
|
@ -139,6 +139,12 @@ def Create(target):
|
||||
|
||||
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))
|
||||
|
||||
tagFile = lutinTools.GetCurrentPath(__file__) + "/tag"
|
||||
ewolVersionID = lutinTools.FileReadData(tagFile)
|
||||
myModule.CompileFlags_CC([
|
||||
"-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\""
|
||||
])
|
||||
|
||||
if target.name=="Linux":
|
||||
myModule.AddExportflag_LD('-lGL')
|
||||
|
||||
|
@ -1 +1 @@
|
||||
0.4.4
|
||||
0.5.0
|
Loading…
Reference in New Issue
Block a user