You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by fr...@apache.org on 2017/05/31 14:09:52 UTC
[14/24] incubator-trafficcontrol git commit: clean up handling of
dist dir during build
clean up handling of dist dir during build
(cherry picked from commit 3ff0f6d256ba7391b3dd0b54d6fdb240cff9a497)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/1e3f10a9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/1e3f10a9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/1e3f10a9
Branch: refs/heads/2.0.x
Commit: 1e3f10a96570c49e2c7bd040eb4bc858c3448d51
Parents: 09ac78a
Author: Dan Kirkwood <da...@gmail.com>
Authored: Wed May 24 14:59:51 2017 +0000
Committer: Eric Friedrich <fr...@apache.org>
Committed: Wed May 31 10:08:57 2017 -0400
----------------------------------------------------------------------
infrastructure/docker/build/clean_build.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/1e3f10a9/infrastructure/docker/build/clean_build.sh
----------------------------------------------------------------------
diff --git a/infrastructure/docker/build/clean_build.sh b/infrastructure/docker/build/clean_build.sh
index b2b749b..09fc761 100755
--- a/infrastructure/docker/build/clean_build.sh
+++ b/infrastructure/docker/build/clean_build.sh
@@ -31,9 +31,9 @@ trap cleanup EXIT
set -x
# set owner of dist dir -- cleans up existing dist permissions...
-cleanup
+rm -rf /trafficcontrol/dist && mkdir -p /trafficcontrol/dist
+
cp -a /trafficcontrol /tmp/. && \
cd /tmp/trafficcontrol && \
- rm -rf dist && \
- ln -fs /trafficcontrol/dist dist && \
+ rm -rf dist && ln -fs /trafficcontrol/dist dist && \
((((./build/build.sh $1 2>&1; echo $? >&3) | tee ./dist/build-$1.log >&4) 3>&1) | (read x; exit $x)) 4>&1