Mercurial > hg > release > thermostat-0.6
changeset 960:0622ac8ac855
Don't corrupt thermostat repository
Reviewed-by: jerboaa, vanaltj
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-February/005533.html
author | Omair Majid <omajid@redhat.com> |
---|---|
date | Fri, 08 Feb 2013 12:52:58 -0500 |
parents | 28153814751f |
children | 588cbb949f83 |
files | Makefile |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Fri Feb 08 14:13:07 2013 -0500 +++ b/Makefile Fri Feb 08 12:52:58 2013 -0500 @@ -1,6 +1,6 @@ MAVEN ?= mvn SKIP_TESTS ?= false -REPO_LOC ?= $(HOME)/.thermostat/.build/mvn_repository +REPO_LOC ?= $(HOME)/.thermostat/.build/mvn_repository/ MAVEN_FLAGS ?= USE_VNC ?= false VNC ?= vncserver @@ -61,12 +61,11 @@ create-repo-dir: mkdir -p $(REPO_LOC) -# This is basically in bash speak: -# -# for i in $(find | grep thermostat); do rm -rf $i; done; -# rm -rf .cache/tycho clean-repo: - done=$(shell bash -c 'cd $(REPO_LOC); for i in $$(find | grep thermostat); do rm -rf $$i; done; rm -rf .cache/tycho/; echo true' ) + if [ -d $(REPO_LOC) ] ; then \ + find $(REPO_LOC) -name '*thermostat*' -print0 | xargs -0 rm -rf ; \ + fi + rm -rf $(REPO_LOC).cache/tycho/ echo-repo: echo "Using private Maven repository: $(REPO_LOC)"