You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2015/10/09 18:03:11 UTC

incubator-tinkerpop git commit: fixed word capitalization for OSX

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/tp30 40ebda143 -> 9212680d0


fixed word capitalization for OSX


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/9212680d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/9212680d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/9212680d

Branch: refs/heads/tp30
Commit: 9212680d01dda42d27928a630a536559ec126159
Parents: 40ebda1
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Fri Oct 9 18:02:55 2015 +0200
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Fri Oct 9 18:02:55 2015 +0200

----------------------------------------------------------------------
 bin/validate-distribution.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/9212680d/bin/validate-distribution.sh
----------------------------------------------------------------------
diff --git a/bin/validate-distribution.sh b/bin/validate-distribution.sh
index 79fab11..3242299 100755
--- a/bin/validate-distribution.sh
+++ b/bin/validate-distribution.sh
@@ -64,7 +64,7 @@ cd ${TMP_DIR}
 # validate downloads
 ZIP_FILENAME=`grep -o '[^/]*$' <<< ${URL}`
 DIR_NAME=`sed -e 's/-[^-]*$//' <<< ${ZIP_FILENAME}`
-COMPONENT=`tr '-' $'\n' <<< ${ZIP_FILENAME} | head -n3 | sed -e 's/^./\U&/' | paste -sd ' ' -`
+COMPONENT=`tr '-' $'\n' <<< ${ZIP_FILENAME} | head -n3 | awk '{for (i = 1; i <= NF; i++) sub(/./, toupper(substr($i, 1, 1)), $1); print}' | paste -sd ' ' -`
 
 if [ "${TYPE}" = "SOURCE" ]; then
   DIR_NAME=`sed -e 's/^[^-]*-//' <<< ${DIR_NAME}`