]> git.pld-linux.org Git - packages/cacti-template-varnish.git/commitdiff
- makefile for dist making
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Apr 2010 21:34:34 +0000 (21:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Makefile -> 1.1

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c9ed121
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+
+PACKAGE_NAME    := $(patsubst %.spec,%,$(wildcard *.spec))
+PACKAGE_VERSION := $(shell awk '/Version:/{print $$2}' $(PACKAGE_NAME).spec)
+
+all:
+
+dist:
+       rm -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+       install -d $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+       cp -a get_varnish_stats.py cacti_host_template_varnish.xml README $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+       tar czf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+       rm -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+       md5sum -b $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz > $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz.md5
This page took 0.239121 seconds and 4 git commands to generate.