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