notDISTVER=$Name: SPSolveV2-0g $
DISTVER=$(subst ame: ,,$(notDISTVER))
all:	
	-rm sp_solve.zip
	-rm -rf /tmp/sp_solve
	(cd /tmp; \
	echo $(notDISTVER);\
	echo $(DISTVER);\
	cvs co -P -r $(DISTVER) sp_solve ;\
	rm /tmp/sp_solve/distrib/sp_solve.zip;)
	(cd ../docs ; \
	pdflatex SPSolveInstall ;\
	pdflatex SPSolveInstallZipped ;\
	bibtex SPSolveInstall ;\
	bibtex SPSolveInstallZipped ;\
	pdflatex SPSolveInstall ;\
	pdflatex SPSolveInstallZipped ;\
	pdflatex SPSolveInstall ;\
	pdflatex SPSolveInstallZipped ;\
	cp SPSolveInstall.pdf /tmp/sp_solve/distrib ;\
	cp SPSolveInstallZipped.pdf /tmp/sp_solve/distrib ;\
	cp SPSolveInstall.pdf ../distrib ;\
	cp SPSolveInstallZipped.pdf ../distrib ;)
	(cd /tmp;zip -r sp_solve.zip ./sp_solve )
	mv /tmp/sp_solve.zip .

