The R Project SVN R

Rev

Rev 34217 | Rev 37016 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34217 Rev 34560
Line 77... Line 77...
77
## every day), we now first create 'R.sh' from 'R.sh.in' via configure,
77
## every day), we now first create 'R.sh' from 'R.sh.in' via configure,
78
## and then use sed to create the front end ('R.fe') which gets
78
## and then use sed to create the front end ('R.fe') which gets
79
## installed as 'R'.
79
## installed as 'R'.
80
R.sh: $(srcdir)/R.sh.in $(top_builddir)/config.status
80
R.sh: $(srcdir)/R.sh.in $(top_builddir)/config.status
81
	@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
81
	@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
82
R.fe: R.sh $(top_srcdir)/VERSION $(top_srcdir)/date-stamp
82
R.fe: R.sh $(top_srcdir)/VERSION $(top_builddir)/SVN-REVISION
83
	@echo "creating $(subdir)/$@"
83
	@echo "creating $(subdir)/$@"
84
	@(v=`cat $(top_srcdir)/VERSION`; \
84
	@(v=`cat $(top_srcdir)/VERSION`; \
85
	  v="$${v} (`sed 's|/|-|g' $(top_srcdir)/date-stamp`)"; \
85
	  dat=`sed -e 1d -e 's/^Last Changed Date: //' $(top_builddir)/SVN-REVISION`; \
-
 
86
	  v="$${v} ($${dat})"; \
86
	  y=`cut -d/ -f1 < $(top_srcdir)/date-stamp`; \
87
	  y=`echo $${dat} | cut -d- -f1`; \
87
	  d=`echo "$(abs_top_builddir)" | sed 's,/,\\\/,g'`; \
88
	  d=`echo "$(abs_top_builddir)" | sed 's,/,\\\/,g'`; \
88
	  sed "s/\\(R_HOME_DIR=\\).*/\\1\"$${d}\"/; \
89
	  sed "s/\\(R_HOME_DIR=\\).*/\\1\"$${d}\"/; \
89
	       s@REPLACE_BY_VERSION@$${v}@; \
90
	       s@REPLACE_BY_VERSION@$${v}@; \
90
	       s@REPLACE_BY_YEAR@$${y}@" < R.sh > $@)
91
	       s@REPLACE_BY_YEAR@$${y}@" < R.sh > $@)
91
	@chmod +x $@
92
	@chmod +x $@