You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2016/11/28 20:02:56 UTC
[1/3] incubator-trafficcontrol git commit: if not in git tree,
no tarball
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/1.8.x bb04cdc38 -> c2c1f718b
if not in git tree, no tarball
(cherry picked from commit df480152e958ff3e137974c5064743d1edeadfab)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0c7d8f46
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0c7d8f46
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0c7d8f46
Branch: refs/heads/1.8.x
Commit: 0c7d8f469b42b42180d21a167855ecac7c4ff8de
Parents: bb04cdc
Author: Dan Kirkwood <da...@gmail.com>
Authored: Fri Nov 11 18:41:11 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 12:59:45 2016 -0700
----------------------------------------------------------------------
build/build.sh | 17 +++++++++++++++--
build/functions.sh | 3 ++-
2 files changed, 17 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0c7d8f46/build/build.sh
----------------------------------------------------------------------
diff --git a/build/build.sh b/build/build.sh
index d82d249..32d47d4 100755
--- a/build/build.sh
+++ b/build/build.sh
@@ -20,8 +20,21 @@
# make sure we start out in traffic_control dir
topscript=$(readlink -f $0)
-top=$(dirname $(dirname "$topscript"))
-[[ -n $top ]] && cd "$top" || { echo "Could not cd $top"; exit 1; }
+export TC_DIR=$(dirname $(dirname "$topscript"))
+[[ -n $TC_DIR ]] && cd "$TC_DIR" || { echo "Could not cd $TC_DIR"; exit 1; }
+
+. build/functions.sh
+
+checkEnvironment
+
+# Create tarball first
+if isInGitTree; then
+ echo "----- Building tarball ..."
+ tarball=$(createTarball "$TC_DIR")
+ ls -l $tarball
+else
+ echo "---- Skipping tarball creation"
+fi
if [[ $# -gt 0 ]]; then
projects=( "$*" )
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0c7d8f46/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index c9dba30..cd17330 100755
--- a/build/functions.sh
+++ b/build/functions.sh
@@ -50,7 +50,8 @@ function getRevCount() {
# ---------------------------------------
function isInGitTree() {
- git rev-parse --is-inside-work-tree 2>/dev/null
+ # ignore output -- use exit status
+ git rev-parse --is-inside-work-tree >/dev/null 2>&1
}
# ---------------------------------------
[2/3] incubator-trafficcontrol git commit: if not in git tree,
no tarball
Posted by da...@apache.org.
if not in git tree, no tarball
(cherry picked from commit 5911d404d46a78926626d0f781caff926f7b6ce9)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/7fa7baf9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/7fa7baf9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/7fa7baf9
Branch: refs/heads/1.8.x
Commit: 7fa7baf98102ff780f83fef9105ede12a8c9b536
Parents: 0c7d8f4
Author: Dan Kirkwood <da...@gmail.com>
Authored: Fri Nov 11 18:41:11 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 13:00:14 2016 -0700
----------------------------------------------------------------------
build/functions.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7fa7baf9/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index cd17330..7df42f5 100755
--- a/build/functions.sh
+++ b/build/functions.sh
@@ -58,7 +58,7 @@ function isInGitTree() {
function getBuildNumber() {
local in_git=$()
if isInGitTree; then
- local commits=$(git rev-list HEAD 2>/dev/null | wc -l)
+ local commits=$(getRevCount)
local sha=$(git rev-parse --short=8 HEAD)
echo "$commits.$sha"
else
[3/3] incubator-trafficcontrol git commit: revcount and commit from
buildno
Posted by da...@apache.org.
revcount and commit from buildno
(cherry picked from commit 646b7e9bcd017c940471fb198b32451872d4edc2)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/c2c1f718
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/c2c1f718
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/c2c1f718
Branch: refs/heads/1.8.x
Commit: c2c1f718b3cf94c05093d58ca52796be5954c771
Parents: 7fa7baf
Author: Dan Kirkwood <da...@gmail.com>
Authored: Sat Nov 12 19:00:25 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 13:00:14 2016 -0700
----------------------------------------------------------------------
build/functions.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/c2c1f718/build/functions.sh
----------------------------------------------------------------------
diff --git a/build/functions.sh b/build/functions.sh
index 7df42f5..cd17330 100755
--- a/build/functions.sh
+++ b/build/functions.sh
@@ -58,7 +58,7 @@ function isInGitTree() {
function getBuildNumber() {
local in_git=$()
if isInGitTree; then
- local commits=$(getRevCount)
+ local commits=$(git rev-list HEAD 2>/dev/null | wc -l)
local sha=$(git rev-parse --short=8 HEAD)
echo "$commits.$sha"
else