diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2006-01-07 21:42:26 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-07 21:42:26 +0000 |
commit | b6079b6c268d8df773e42a191f12c9afcd17d1c6 (patch) | |
tree | e665d9ee8167a8237254a624c79a3db8b7837cd3 /packages/sparse | |
parent | 1fbdad585b0137cecf62a86a6dac7e91a44505a6 (diff) |
Convert CVSDATE -> SRCDATE. Also standardise cvs and svn PVs to x.x.x+cvsYYYYMMDD format and some includes some minor whitespace cleanup.
Diffstat (limited to 'packages/sparse')
-rw-r--r-- | packages/sparse/sparse_snapshot.bb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/sparse/sparse_snapshot.bb b/packages/sparse/sparse_snapshot.bb index d3a522b1b7..9e17dbc151 100644 --- a/packages/sparse/sparse_snapshot.bb +++ b/packages/sparse/sparse_snapshot.bb @@ -1,19 +1,19 @@ SECTION = "devel" def get_snapshot_date(d): import bb - cvsdate = bb.data.getVar('CVSDATE', d, 1) - if not cvsdate: + srcdate = bb.data.getVar('SRCDATE', d, 1) + if not srcdate: return "" - y = cvsdate[0:4] - m = cvsdate[4:6] - d = cvsdate[6:8] + y = srcdate[0:4] + m = srcdate[4:6] + d = srcdate[6:8] return "%s-%s-%s" % (y, m, d) DESCRIPTION = "Sparse is a semantic parser of source files: it's neither a \ compiler (although it could be used as a front-end for one) nor is it a \ preprocessor (although it contains as a part of it a preprocessing phase)." MAINTAINER = "Chris Larson <kergoth@handhelds.org>" -PV = "0.0${CVSDATE}" +PV = "0.0+${SRCDATE}" LICENSE = "OSL" SRC_URI = "http://www.codemonkey.org.uk/projects/git-snapshots/sparse/sparse-${@get_snapshot_date(d)}.tar.gz \ file://compile.patch;patch=1 \ |