Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > a68aa3701b6abd0438ee52ae6e38aaef > files > 14

cvsreport-0.3.5-7mdv2010.0.noarch.rpm

TEST=100

test: workingcopy
	@(cd workingcopy/$(MODULE) && \
	../../cvsjam $(TEST) && \
	cd ../.. && \
	../cvsreport -D -d "`pwd`/repository" -c test.conf -f now-1year 2>&1) | tee test.log


.PHONY: repository workingcopy


CVSROOT = `pwd`/repository
MODULE  = test

repository:
	@if test -e "$@"; then exit; fi; \
	echo "** Creating an empty repository"; \
	cvs -d "$(CVSROOT)" init

test_module: repository
	@if test -e "$</$(MODULE)"; then exit; fi; \
	echo "** Creating an empty '$(MODULE)' module"; \
	cvsroot="$(CVSROOT)"; \
	mkdir -p empty && \
	cd empty && \
	cvs -Q -d "$$cvsroot" import -m 'initial import' $(MODULE) vendor_tag initial_import && \
	cd .. && \
	rmdir empty

workingcopy: test_module
	@if test -e "$@"; then exit 0; fi; \
	echo -e "** Checking out a working copy\n"; \
	cvsroot="$(CVSROOT)"; \
	mkdir "$@" && \
	cd "$@" && \
	cvs -Q -d "$$cvsroot" co .

install: repository
	cp ../cvsreport repository/CVSROOT
	chmod +w repository/CVSROOT/commitinfo
	echo 'ALL    $$CVSROOT/CVSROOT/cvsreport -D file text ../../report1.txt' >> repository/CVSROOT/commitinfo

clean:
	rm -rf repository workingcopy empty *.log *.txt *.html