packages: nagios-plugin-check_raid/Makefile (NEW) - makefile to make dist t...
glen
glen at pld-linux.org
Sun Aug 22 18:02:51 CEST 2010
Author: glen Date: Sun Aug 22 16:02:51 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- makefile to make dist tarball
---- Files affected:
packages/nagios-plugin-check_raid:
Makefile (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_raid/Makefile
diff -u /dev/null packages/nagios-plugin-check_raid/Makefile:1.1
--- /dev/null Sun Aug 22 18:02:51 2010
+++ packages/nagios-plugin-check_raid/Makefile Sun Aug 22 18:02:44 2010
@@ -0,0 +1,14 @@
+# $Id$ #
+SPECFILE := $(firstword $(wildcard *.spec))
+PACKAGE_NAME := $(patsubst %.spec,%,$(SPECFILE))
+PACKAGE_VERSION := $(shell awk '/Version:/{print $$2}' $(SPECFILE))
+
+all:
+
+dist:
+ rm -rf $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+ install -d $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+ cp -a check_raid check_raid.cfg t $(PACKAGE_NAME)-$(PACKAGE_VERSION)
+ tar --exclude-vcs -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
================================================================
More information about the pld-cvs-commit
mailing list