mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
763 B
763 B
ros-init - Create a roswell script (optionally based on a template)
Synopsis
ros init [template] name
template
: Specify the name of a template.
Description
Initialises [name].ros.
The default template is something like:
#!/bin/sh
#|-*- mode:lisp -*-|#
#|
exec ros -Q -- $0 "$@"
|#
(defun main (&rest argv)
(declare (ignorable argv)))
This is basically a shell script which immediately invokes Roswell by exec (see sh(1)). Roswell loads the same script as an input, skips multi-line comments, reads the rest of the file as a Common Lisp program, and finally invokes a function main with command-line arguments.
SEE ALSO
sbcl(1) ros(1)