guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trick for using guile, even when you don't know where it's installed.


From: Rob Browning
Subject: Trick for using guile, even when you don't know where it's installed.
Date: 25 Jul 2001 16:00:07 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

If you want to use a guile script for something, but you want it to be
portable to any system where guile's in the user's path, I've found
this particular trick fairly useful.  It only relies on the existence
of #!/bin/sh, and guile *somewhere* in the user's path.

  #!/bin/sh
  exec guile -s "$0"
  !#
  (display "Hello\n")

You can also do other things before launching guile:

  #!/bin/sh
  export LD_LIBRARY_PATH="/some/stuff/you/need:${LD_LIBRARY_PATH}"
  export GUILE_LOAD_PATH="/some/other/stuff/you/need:${GUILE_LOAD_PATH}"
  exec guile -s "$0"
  !#
  (do-whatever)
  (do-whatever-else)
  (etc)

Hope this helps.

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]