[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CGI scripting with Guile
From: |
Thien-Thi Nguyen |
Subject: |
Re: CGI scripting with Guile |
Date: |
Sun, 16 Mar 2008 14:16:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
() Sebastian Tennant <address@hidden>
() Sun, 16 Mar 2008 14:56:20 +0200
This is incredibly useful. Thank you for pointing it out.
You're welcome. If you find any bugs in it, i'm all ears...
Just out of curiostiy, why the '.in' file extension?
Is it to do with make?
It's customary for autoconf-substituted files (see configure.in)
to use the .in extension. Running the configure script produces
id.cgi from id.cgi.in, with the @var@ sequences expanded.
> #!/bin/sh
> exec @GUILE@ -s $0 "$@" # -*- scheme -*-
> !#
Also, why the shell?
This preamble can accomodate Guile installed in different places.
For example, in my case, @GUILE@ becomes /home/ttn/local/bin/guile,
but for you it would most likely be different. You should be able
to safely replace it w/ the preamble used in your test script.
thi
Re: CGI scripting with Guile, Sebastian Tennant, 2008/03/15