You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by dc...@apache.org on 2021/08/26 10:46:37 UTC
[datasketches-memory] 03/03: Rename Version to GitTag
This is an automated email from the ASF dual-hosted git repository.
dcromberge pushed a commit to branch single-build-script
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git
commit fb52cf67a10d43ef2cb8bba532eb57f5c9fa6721
Author: David Cromberge <dc...@apache.org>
AuthorDate: Thu Aug 26 11:46:20 2021 +0100
Rename Version to GitTag
---
tools/scripts/compile-package-jar.sh | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/tools/scripts/compile-package-jar.sh b/tools/scripts/compile-package-jar.sh
index 000f181..9336f9c 100755
--- a/tools/scripts/compile-package-jar.sh
+++ b/tools/scripts/compile-package-jar.sh
@@ -34,16 +34,16 @@
# \$3 = absolute path of project.basedir
# For example: $ <this script>.sh $JAVA_HOME 2.0.0-RC1 .
-if [ -z "$1" ]; then echo "Missing java.home"; exit 1; fi
-if [ -z "$2" ]; then echo "Missing Git Version"; exit 1; fi
-if [ -z "$3" ]; then echo "Missing project.basedir"; exit 1; fi
-
-# Setup absolute directory references
-ScriptsDir=$(pwd)
+if [ -z "$1" ]; then echo "Missing java.home"; exit 1; fi
+if [ -z "$2" ]; then echo "Missing Git Tag"; exit 1; fi
+if [ -z "$3" ]; then echo "Missing project.basedir"; exit 1; fi
## Extract JavaHome and Version from input parameters:
JavaHome=$1
-Version=$2
+GitTag=$2
+
+# Setup absolute directory references
+ScriptsDir=$(pwd)
ProjectBaseDir=$3 #this must be an absolute path
####Move to project directory####
@@ -77,7 +77,7 @@ fi
#### Cleanup and setup output directories ####
OutputDir=target
-OutputJar=${OutputDir}/org.apache.datasketches.memory-${Version}.jar
+OutputJar=${OutputDir}/org.apache.datasketches.memory-${GitTag}.jar
PackageDir=${OutputDir}/package
PackageSrc=${PackageDir}/src
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org