Got build script to support building Windows .exe of x.x.x versions.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@732 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-05-12 22:57:31 +00:00
parent 93823899b7
commit 83bd1a368e
2 changed files with 14 additions and 4 deletions

View File

@ -178,12 +178,12 @@
<opt>-Djava.library.path=lib/native/windows -Dgridworks.version=${revision}</opt>
</jre>
<versionInfo
fileVersion="${num_version}.0.0"
fileVersion="${full_version}"
txtFileVersion="${version}"
fileDescription="gridworks"
copyright="Copyright (c) 2010, Metaweb Technologies, Inc."
productVersion="${num_version}.0.0"
txtProductVersion="${num_version}.0.0"
productVersion="${full_version}"
txtProductVersion="${full_version}"
productName="Gridworks"
companyName="Metaweb Technologies, Inc."
internalName="gridworks"

View File

@ -143,6 +143,16 @@ get_version() {
fail "Must specify a version number"
fi
if [[ "${VERSION}" == *.*.*.* ]]; then
FULL_VERSION="${VERSION}"
elif [[ "${VERSION}" == *.*.* ]]; then
FULL_VERSION="${VERSION}.0"
elif [[ "${VERSION}" == *.* ]]; then
FULL_VERSION="${VERSION}.0.0"
else
FULL_VERSION="${VERSION}.0.0.0"
fi
NUM_VERSION=`echo $VERSION | sed 's/[a-zA-Z]//g'`
}
@ -359,7 +369,7 @@ ant() {
#export ANT_OPTS="-Xmx1024M"
"$ANT" -f build.xml $ANT_PARAMS -Dbuild.dir="$GRIDWORKS_BUILD_DIR" -Ddist.dir="$GRIDWORKS_DIST_DIR" -Dversion="$VERSION" -Dnum_version="$NUM_VERSION" -Drevision="$REVISION" $1 || error "Error while running ant task '$1'"
"$ANT" -f build.xml $ANT_PARAMS -Dbuild.dir="$GRIDWORKS_BUILD_DIR" -Ddist.dir="$GRIDWORKS_DIST_DIR" -Dversion="$VERSION" -Dnum_version="$NUM_VERSION" -Dfull_version="$FULL_VERSION" -Drevision="$REVISION" $1 || error "Error while running ant task '$1'"
}
# ----------------------------------------------------------------------------------------------