From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: [Babel] Installation notes for an app Date: Thu, 28 Oct 2010 17:10:32 +0200 Message-ID: <801v7a8iaf.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org #+TITLE: Installation Notes for an app #+LANGUAGE: en_US * Global constants ** Development #+tblname: dev-params | serverName | host1 | | appBaseDir | /cygdrive/d/dir1 | ** Staging #+tblname: stg-params | serverName | host2 | | appBaseDir | /cygdrive/d/dir2 | ** Production #+tblname: prd-params | serverName | host3 | | appBaseDir | /cygdrive/d/dir3 | * Show the params :de= v: ** Statically assigned #+begin_src sh :rownames no :var data=3Ddev-params :exports both echo $data #+end_src #+results: : serverName host1 appBaseDir /cygdrive/d/dir1 ** "Dynamically" assigned Trying to be as adaptable as possible, I'll use the tag to refer to the rig= ht table: #+begin_src sh :rownames no :var data=3D(concat (car (org-get-tags-at (poin= t))) "-params") :exports both echo $data #+end_src #+results: : dev-params XXX I expected to see here the same results as in the [[*Statically%20assig= ned][previous version]]. PS- Instead of a tag, I could use as well some other sort of "global constant". Right now, I do not see yet the respective gains or problems of both. I guess I'll do in the coming days. * Export the params To export the params to the shell, I can process the above string with AWK = or some such. XXX Any advice on doing it better? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode