emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* noweb
@ 2020-01-22 19:41 Nuno Salgado
  2020-01-22 20:21 ` noweb Marco Wahl
  2020-01-22 22:14 ` noweb Diego Zamboni
  0 siblings, 2 replies; 8+ messages in thread
From: Nuno Salgado @ 2020-01-22 19:41 UTC (permalink / raw)
  To: Emacs-orgmode

Hi,

I'm writing an installation script in org-mode.

I'm doing something like this:

  Vars definition:
  #+NAME:DEFVARS
  #+BEGIN_SRC shell :tangle yes
    v1=1;
    v2=2;
  #+END_SRC

  Script1:
  #+BEGIN_SRC shell :tangle yes :noweb eval
    <<DEFVARS>>
    echo $v1;
  #+END_SRC

  Script2:
  #+BEGIN_SRC shell :tangle yes :noweb eval
    <<DEFVARS>>
    echo $v2;
    echo $v1;
  #+END_SRC

This works great when I do C-c C-c in each script.

But when I do org-babel-tangle, the code gets two <<DEFVARS>>.

Does it makes sense? Since I set noweb = eval why does it exports
<<DEFVARS>>?

Could you please help me turning around this problem without removing every reference <<DEFVARS>>

Thank you very much.


Regards,
NS

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-23 19:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 19:41 noweb Nuno Salgado
2020-01-22 20:21 ` noweb Marco Wahl
2020-01-23  0:04   ` noweb Nuno Salgado
2020-01-23  7:58     ` noweb Marco Wahl
2020-01-22 22:14 ` noweb Diego Zamboni
2020-01-23  0:18   ` noweb Nuno Salgado
2020-01-23  7:00     ` noweb Fraga, Eric
2020-01-23 19:17       ` noweb Nick Dokos

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).