Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

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 202457f commit 7e828bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions make.py
Expand Up @@ -15,7 +15,7 @@

import os
import sys

import datetime
import pypackager
sys.path.append('bitpurse')

Expand All @@ -32,6 +32,8 @@
p = pypackager.PyPackager("bitpurse")
p.display_name = 'BitPurse'
p.version = __version__
if 'git' in sys.argv:
p.version += '+%sgit' % datetime.datetime.now().strftime('%Y%m%d')
p.buildversion = __build__
p.summary = 'A nice looking Blockchain.info Bitcoin Wallet Client'
p.description = ("A nice looking Blockchain.info Bitcoin Wallet Client "
Expand Down Expand Up @@ -89,8 +91,8 @@
p['/usr/share/icons/hicolor/128x128/apps'] = ['bitpurse_128.png', ]
p['/usr/share/icons/hicolor/scalable/apps'] = ['bitpurse.svg', ]
p['/usr/share/applications'] = ['bitpurse.desktop', ]
p['/usr/share/backup-framework/applications'] = ['bitpurse.conf',]
p['/usr/share/backup-framework/applications'] = ['bitpurse.conf', ]
p["/opt"] = files
p["/opt/bitpurse"] = ['splash.png', ]

print p.generate(('debian_source', 'rpm_source', 'debian_binary'))
print p.generate(('debian_source', 'rpm_source', 'debian_binary'))

0 comments on commit 7e828bb

Please sign in to comment.