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/30 18:15:25 UTC

[5/9] incubator-trafficcontrol git commit: cd to traffic_monitor prior to mvn call

cd to traffic_monitor prior to mvn call


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/6aab6499
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/6aab6499
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/6aab6499

Branch: refs/heads/psql-rebase
Commit: 6aab64993fadabb2d45898608e34bea136bd7e22
Parents: 1317b3f
Author: Dan Kirkwood <da...@gmail.com>
Authored: Tue Nov 29 16:18:55 2016 +0000
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Nov 30 11:14:44 2016 -0700

----------------------------------------------------------------------
 traffic_monitor/build/build_rpm.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/6aab6499/traffic_monitor/build/build_rpm.sh
----------------------------------------------------------------------
diff --git a/traffic_monitor/build/build_rpm.sh b/traffic_monitor/build/build_rpm.sh
index e8970a0..cb14028 100755
--- a/traffic_monitor/build/build_rpm.sh
+++ b/traffic_monitor/build/build_rpm.sh
@@ -62,9 +62,9 @@ function initBuildArea() {
 	tm_dest=$(createSourceDir traffic_monitor)
 
 	export TRAFFIC_CONTROL_VERSION="$TC_VERSION"
-    export MVN_CMD="mvn versions:set -DnewVersion=$TRAFFIC_CONTROL_VERSION"
-    echo $MVN_CMD
-    $MVN_CMD
+	local mvn_cmd="mvn versions:set -DnewVersion=$TRAFFIC_CONTROL_VERSION"
+	echo $mvn_cmd
+	(cd "$TM_DIR"; $mvn_cmd)
 	cp -r "$TM_DIR"/{build,etc,src} "$tm_dest"/. || { echo "Could not copy to $tm_dest: $?"; exit 1; }
 	cp  "$TM_DIR"/pom.xml "$tm_dest" || { echo "Could not copy to $tm_dest: $?"; exit 1; }