diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2008-09-27 17:52:05 +0000 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2008-09-27 17:52:05 +0000 |
commit | 6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8 (patch) | |
tree | 0c4e761c5b5aad7010c210a4519a2a72760af55d /makefiles/dist.mk | |
parent | eedc9cd68aef078e4584e43d8055d70e1fa07351 (diff) | |
download | nagios-plugin-curl-6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8.tar.gz nagios-plugin-curl-6b1b9863d8fccfe09c2f72c68e1ebfeea54efbe8.tar.bz2 |
- added first runnig version
Diffstat (limited to 'makefiles/dist.mk')
-rw-r--r-- | makefiles/dist.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/makefiles/dist.mk b/makefiles/dist.mk new file mode 100644 index 0000000..01464da --- /dev/null +++ b/makefiles/dist.mk @@ -0,0 +1,21 @@ +# creates distribution tarball +# +# requires: +# - PACKAGE_NAME +# - PACKAGE_VERSION +# +# provides: +# - target 'dist' + +.PHONY: dist +dist: distclean + test -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar || rm -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar + test -d /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) || rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) + find . -type f | grep -v .svn | \ + xargs tar cf /tmp/pre + mkdir /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) + cd /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) && \ + tar xf ../pre && rm -f ../pre && cd .. && \ + tar cvf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar $(PACKAGE_NAME)-$(PACKAGE_VERSION) + rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) + mv -f /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar . |