Skip to content

Commit

Permalink
Further strip version in build.xml
Browse files Browse the repository at this point in the history
This removes "v." from the start of old-style tags (v.4.3.3)
as well as the "g" from the tag name ("-gabc123").

build.py regex updated as well.
  • Loading branch information
joshmoore committed Jan 20, 2012
1 parent d250882 commit c3da7ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def choose_omero_version():
#
# See gh-67 for the discussion.
if not omero_build:
omero_version = re.sub("([-]DEV)?-\d+-g[^-]+[+]?",\
omero_version = re.sub("([-]DEV)?-\d+-[a-f0-9]+(-dirty)?",\
"-DEV", omero_version)
return [ "-Domero.version=%s%s" % (omero_version, omero_build) ]
except:
Expand Down
5 changes: 4 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,10 @@ omero.version=${omero.version}
<arg line="--dirty"/>
</args>
</git>
<echo>${version.describe}-ice${versions.ice_lib}</echo>
<!--"((.*?)-)(v.)+(.*?)-([0-9]+)-g([^-]+)(-dirty)?" select="1\1-2\2-3\3-4\4-5\5"-->
<propertyregex property="version.describe.clean" input="${version.describe}"
regexp="^(v.)?(.*?)(-[0-9]+)?((-)g(.*?))?$" select="\2\3\5\6"/>
<echo>${version.describe.clean}-ice${versions.ice_lib}</echo>
</try>
<catch>
<echo>UNKNOWN-ice${versions.ice_lib}</echo>
Expand Down

0 comments on commit c3da7ad

Please sign in to comment.