chiark / gitweb /
sys-base: Further cl-launch improvement.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 26 Nov 2008 21:23:09 +0000 (21:23 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 26 Nov 2008 21:23:09 +0000 (21:23 +0000)
commit460f9a0dd7568719bd102dc5df8d52b4d41423dd
tree62b5d3e7035515b86f2f39fb38a291da1b67fca1
parent1cbc65e7d3d318b21fa3793676ad203a799e2206
sys-base: Further cl-launch improvement.

If CL_LAUNCH_FILE is unset, assume that we've been invoked with the
program name as the first argument anyway.  We can arrange for this to
be the case fairly easily.

The problem is that

  #! /usr/bin/cl-launch -X ... --

doesn't work on Linux because cl-launch is a script.  Besides, it
hard-codes the path of cl-launch.  Putting

  #! /bin/sh
  #|
  exec cl-launch -f "$0" -- "$0" "$@"
  |#
  ... lisp here ...

seems sufficient for one-off Lisp scripts.
sys-base.lisp