[DEV] set a real Tag Version

This commit is contained in:
Edouard DUPIN 2013-11-28 22:06:53 +01:00
parent 42984619d7
commit e24a3f0d8f
5 changed files with 30 additions and 8 deletions

2
build

@ -1 +1 @@
Subproject commit b685e8442a30802718a5bcae77a1c0fc14c1fbba
Subproject commit bb6e701bd869aafa0811557508bc524de8c323c5

21
sources/createTag.sh Executable file
View 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

View File

@ -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;
}

View File

@ -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')

View File

@ -1 +1 @@
0.4.4
0.5.0