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:
vindarel 2023-03-11 15:23:23 +01:00
parent ef9ef8d72e
commit 49b7f1a7bc
3 changed files with 9 additions and 6 deletions

2
src/scripts/quicksearch.lisp Normal file → Executable file
View file

@ -3,7 +3,7 @@
;;;
;;;
;;; Run with:
;;; $ ciel quicksearch keyword
;;; $ ciel -s quicksearch keyword
;;;
;;; or add a shebang line and make this script executable.
;;;

View file

@ -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)