Skip to content

Commit

Permalink
Add option in make to add git timestamp in package version for automa…
Browse files Browse the repository at this point in the history
…ted build on drone.io
  • Loading branch information
Benoit HERVIER committed Apr 19, 2013
1 parent 80f2c22 commit 873513a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions make.py
Expand Up @@ -19,6 +19,7 @@

import khtsimpletext
import pypackager
import datetime

__build__ = '4'
__author__ = "Benoît HERVIER (khertan)"
Expand All @@ -32,6 +33,8 @@
p = pypackager.PyPackager("khtsimpletext")
p.display_name = 'KhtSimpleText'
p.version = khtsimpletext.__version__
if 'git' in sys.argv:
p.version += '+%sgit' % datetime.datetime.now().strftime('%Y%m%d')
p.buildversion = __build__
p.summary = 'A text editor'
p.description = "A text editor for Harmattan devices (n950, n9)" \
Expand Down

0 comments on commit 873513a

Please sign in to comment.