Clean up version handling

This commit is contained in:
Tom Morris 2013-07-29 18:30:23 -04:00
parent fc6d1821ea
commit 840c8979cf
2 changed files with 3 additions and 2 deletions

View File

@ -275,6 +275,7 @@
</target>
<target name="windows" depends="jar, prepare_webapp">
<echo message="Full version ${full_version} and version ${version}"/>
<mkdir dir="${windows.dir}"/>
<taskdef
name="launch4j"
@ -300,7 +301,7 @@
fileDescription="openrefine"
copyright="Copyright (c) 2013 OpenRefine contributors, 2010, Google, Inc."
productVersion="${full_version}"
txtProductVersion="${full_version}"
txtProductVersion="${version}"
productName="OpenRefine"
companyName="OpenRefine team"
internalName="openrefine"

2
refine
View File

@ -186,7 +186,7 @@ get_version() {
fail "Must specify a version number"
fi
NUM_VERSION=`echo $VERSION | sed -E 's/[a-zA-Z]+/./g'`
NUM_VERSION=`echo $VERSION | sed -E 's/-.*//g'`
if [ "${NUM_VERSION}" = "" ] ; then
fail "${VERSION} is not a valid version number"