From 6f401a9035ef9c427a3ec81df461b0b071fd9ba6 Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Wed, 14 Oct 2009 19:13:11 -0500 Subject: fixed tarfile creation modified tar file creation to avoid adding cruft to the archive by explicitly copying the python and xls files required (instead of copying the rteval directory and all it's contents) --- Makefile | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5bab542..a87e064 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,23 @@ HERE := $(shell pwd) PACKAGE := rteval -VERSION := $(shell awk '/Version:/ { print $$2 }' ${PACKAGE}.spec) +VERSION := $(shell awk '/Version:/ { print $$2 }' ${PACKAGE}.spec | head -n 1) D := 10 +PYSRC := rteval/rteval.py \ + rteval/cyclictest.py \ + rteval/dmi.py \ + rteval/hackbench.py \ + rteval/__init__.py \ + rteval/kcompile.py \ + rteval/load.py \ + rteval/rtevalclient.py \ + rteval/rtevalConfig.py \ + rteval/rtevalMailer.py \ + rteval/xmlout.py + +XSLSRC := rteval/rteval_dmi.xsl \ + rteval/rteval_text.xsl + +CONFSRC := rteval/rteval.conf runit: [ -d ./run ] || mkdir run @@ -20,8 +36,10 @@ install: python setup.py --dry-run install tarfile: - rm -rf tarball && mkdir -p tarball/rteval-$(VERSION) - cp -r rteval tarball/rteval-$(VERSION) + rm -rf tarball && mkdir -p tarball/rteval-$(VERSION)/rteval + cp $(PYSRC) tarball/rteval-$(VERSION)/rteval + cp $(XSLSRC) tarball/rteval-$(VERSION)/rteval + cp $(CONFSRC) tarball/rteval-$(VERSION)/rteval cp -r doc/ tarball/rteval-$(VERSION) cp Makefile setup.py rteval.spec COPYING tarball/rteval-$(VERSION) tar -C tarball -cjvf rteval-$(VERSION).tar.bz2 rteval-$(VERSION) -- cgit