Patent2net / P2N

Last P2N version, working on
13 stars 7 forks source link

Scritpt version #1

Closed cvanderlei closed 7 years ago

cvanderlei commented 7 years ago

E-mail discution:

The compilation procedure uses for each python script the versionscript.txt file to specify the version. Instead of modifying each file "a la mano" I proposed to make this script. This is intended for each file (*.txt) in the Patent2Net directory. Each of them contains actually the lines: filevers=(2, day.month.year) StringStruct(u'ProductVersion', u'2, day.month.year')]) Actually fileversion is fixed to u'2.1.1.15', productversion in 2. 12.12.15 (the first '2' means P2N v2), etc... and this is false :-)...

a script that import date, will be able to catch the current 'today=datetime.date.today()' ... and today.month is the the month, today.year the good year... Setting parameter to the .txt file will allow you to fix these file between each compilation using this new script...

cvanderlei commented 7 years ago

To improve a quick solution, it was created a script as part of build process to generate an empty file in the dist folder with the compilation date.