You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2017/01/11 22:20:20 UTC

[3/4] incubator-trafficcontrol git commit: fix an issue where you couldnt build all projects

fix an issue where you couldnt build all projects


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

Branch: refs/heads/master
Commit: 68112049f9295057ffd451ee661c3273ec2a4f25
Parents: 35b06d5
Author: David Neuman <da...@gmail.com>
Authored: Wed Jan 11 22:09:38 2017 +0000
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Wed Jan 11 15:19:41 2017 -0700

----------------------------------------------------------------------
 build/build.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/68112049/build/build.sh
----------------------------------------------------------------------
diff --git a/build/build.sh b/build/build.sh
index ef952d8..558fb9e 100755
--- a/build/build.sh
+++ b/build/build.sh
@@ -40,7 +40,12 @@ if [[ $# -gt 0 ]]; then
 	projects=( "$*" )
 else
 	# get all subdirs containing build/build_rpm.sh
-	projects=( */build/build_rpm.sh )
+	projects_to_build=( */build/build_rpm.sh )
+	projects=()
+	for p in "${projects_to_build[@]}"; do
+	  p=${p%%/*}
+	  projects+=($p)
+	done
 fi
 
 declare -a badproj