[omd-commits] OMD Git: omd: mk-livestatus: fix make upstream

git version control git at mathias-kettner.de
Fri Apr 1 15:58:50 CEST 2011


Module:   omd
Branch:   master
Commit:   230b5c719ce6d659e1ac97590773bfd409828192
URL:      http://omdistro.org/projects/omd/repository/revisions/230b5c719ce6d659e1ac97590773bfd409828192

Author:   Mathias Kettner <mk at mathias-kettner.de>
Date:     Fri Apr  1 15:56:19 2011 +0200
Commiter: Mathias Kettner <mk at mathias-kettner.de>
Date:     Fri Apr  1 15:58:39 2011 +0200

mk-livestatus: fix make upstream

---

 packages/mk-livestatus/Makefile |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/packages/mk-livestatus/Makefile b/packages/mk-livestatus/Makefile
index fd28ec4..919d552 100644
--- a/packages/mk-livestatus/Makefile
+++ b/packages/mk-livestatus/Makefile
@@ -23,8 +23,9 @@ clean:
 	rm -rf mk-livestatus-*.*.*[0-9]
 
 upstream:
-	git rm mk-livestatus-*.tar.gz || true
-	rm -f mk-livestatus-*.tar.gz
-	wget http://mathias-kettner.de/download/mk-livestatus-$(VERSION).tar.gz
-	git add mk-livestatus-$(VERSION).tar.gz
-
+	if [ ! -e mk-livestatus-$(VERSION).tar.gz ] ; then \
+	  git rm mk-livestatus-*.tar.gz || true ; \
+	  rm -f mk-livestatus-*.tar.gz ; \
+	  wget http://mathias-kettner.de/download/mk-livestatus-$(VERSION).tar.gz ; \
+	  git add mk-livestatus-$(VERSION).tar.gz ; \
+	fi



More information about the omd-commits mailing list