The R Project SVN R

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
51898 ripley 1
include ../MkRules
2
 
53414 ripley 3
R_HOME = ../../..
51898 ripley 4
 
51899 ripley 5
RPREFIX = $(shell ../../../bin$(R_ARCH)/Rscript ../fixed/rwver.R)
51898 ripley 6
FULLVERSION=`cat ../../../VERSION`
7
SVNREVISION=`sed -e 1s/Revision:.// -e q < $(R_HOME)/SVN-REVISION`
8
RVER = $(shell cut -d' ' -f1 ../../../VERSION | sed -n 1p)
51965 murdoch 9
DATE = $(shell date +%F)
75743 maechler 10
SIZEMB = $(shell du -m ../installer/$(RPREFIX)-win.exe | cut -f1)
51898 ripley 11
 
77228 maechler 12
R_EXE = $(R_HOME)/$(BINDIR)/rterm.exe --vanilla --no-echo
51898 ripley 13
 
14
all:
52488 murdoch 15
	$(CP) ../../../doc/html/CHANGES.html CHANGES.$(RPREFIX).html
16
	$(CP) ../../../doc/html/NEWS.html NEWS.$(RPREFIX).html
51898 ripley 17
	$(CP) ../installer/$(RPREFIX)-win*.exe .
53418 ripley 18
	($(ECHO) 'cat(md5sum("$(RPREFIX)-win.exe"), "*$(RPREFIX)-win.exe")' \
53414 ripley 19
         | $(R_EXE) R_DEFAULT_PACKAGES=tools > md5sum.txt)
51898 ripley 20
	$(CP) ../../../doc/html/rw-FAQ.html .	
21
	@for page in index rdevel rpatched rtest release; do \
22
	  $(SED) -e s/@RWVER@/$(RPREFIX)/g \
23
	    -e s/@RVER@/$(RVER)/g \
24
	    -e "s/@DATE@/$(DATE)/g" \
75743 maechler 25
	    -e "s/@SIZEMB@/$(SIZEMB)/g" \
51898 ripley 26
	    -e "s/@SVNREVISION@/$(SVNREVISION)/g" \
51965 murdoch 27
	    -e "s/@FULLVERSION@/$(FULLVERSION)/g" $${page}.in >$${page}.html; \
51898 ripley 28
	done
29
	$(CP) release.html release.htm
30
	$(SED) -e s/@RWVER@/$(RPREFIX)/g \
31
	  -e s/@RVER@/$(RVER)/g \
32
	  -e "s/@FULLVERSION@/$(FULLVERSION)/g" ../README > README.$(RPREFIX)
33
	$(SED) -e s/@RWVER@/$(RPREFIX)/g \
34
	  -e s/@RVER@/$(RVER)/g \
35
	  -e "s/@FULLVERSION@/$(FULLVERSION)/g" ReadMe.in > ReadMe	  
36
	@(zip -q dosfiles.zip CHANGES.$(RPREFIX) NEWS.$(RPREFIX) README.$(RPREFIX) ReadMe; \
37
	 unzip -aqo dosfiles.zip; \
38
	 $(RM) dosfiles.zip)
59633 murdoch 39
	$(ECHO) set target=$(RPREFIX) >target.cmd
51898 ripley 40
 
41
 
42
clean:
62626 ripley 43
	$(RM) -R *.html *.htm ReadMe README* *.exe md5sum.txt NEWS.* CHANGES.* target.cmd