emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Actual value of variable in tangled source file instead of variable
@ 2011-06-20 11:21 Rainer M Krug
  0 siblings, 0 replies; only message in thread
From: Rainer M Krug @ 2011-06-20 11:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]


I am using R for package writing in R, and the org file is under svn version

I would like to keep the version of the R package, as stated in the
DESCRIPTION file, in sync with the svn revision, so I thought about using
variables for that.

But my approach below obviosly does not work, as in the tangled DESCRIPTION
file, it says Version: 0.$VER

Is it possible to have, during tangling, the actual value in the source file
instead of the variable?



 #+begin_src sh :tangle ./asm/DESCRIPTION :shebang :padline no :var
VER=(vc-working-revision (buffer-file-name))
  Package: asm
  Type: Package
  Title: Alien spread management simulation model
  Version: 0.$VER
  Date: 2011-06-08
  Author: Rainer M. Krug
  Maintainer: Rainer M Krug <Rainer@krugs.de>
  Description: For research
  License: GPL-3
  LazyLoad: yes
  Depends: simecol, sp, maptools, spgrass6, RSQLite, Rcpp (>= 0.9.4)
  LinkingTo: Rcpp


Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

[-- Attachment #2: Type: text/html, Size: 1854 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-20 11:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-20 11:21 Actual value of variable in tangled source file instead of variable Rainer M Krug

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).