mirror of
https://gitlab.com/vindarel/ciel.git
synced 2026-01-18 23:31:07 -08:00
scripts: allow scripts with or without a shebang line
We strip the shebang line out, if there is one, so than the same .lisp file can be called with ciel -s <name>.lisp or ./name
This commit is contained in:
parent
ef9ef8d72e
commit
49b7f1a7bc
3 changed files with 9 additions and 6 deletions
2
src/scripts/quicksearch.lisp
Normal file → Executable file
2
src/scripts/quicksearch.lisp
Normal file → Executable file
|
|
@ -3,7 +3,7 @@
|
|||
;;;
|
||||
;;;
|
||||
;;; Run with:
|
||||
;;; $ ciel quicksearch keyword
|
||||
;;; $ ciel -s quicksearch keyword
|
||||
;;;
|
||||
;;; or add a shebang line and make this script executable.
|
||||
;;;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env ciel
|
||||
;;;
|
||||
;;; Run with:
|
||||
;;; $ ciel -s simpleHTTPserver 4242
|
||||
;;;
|
||||
;;; or add a shebang line and make this script executable:
|
||||
;; #!/usr/bin/env ciel
|
||||
;; =>
|
||||
;; $ ./simpleHTTPserver.lisp
|
||||
;;; or
|
||||
;;;
|
||||
;;; $ ./simpleHTTPserver.lisp
|
||||
;;;
|
||||
|
||||
(in-package :ciel-user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue