pgloader/pgloader.lisp
Alexander Pánek cc2c21ae42 Updated shebang line
Not everyone has SBCL installed in /usr/bin/sbcl and sometimes one wants to test other versions of SBCL or just not install the official Debian/Ubuntu packages. I have tested this on Ubuntu precise and it worked for me.

I got the info this would work from here:
https://bugs.launchpad.net/sbcl/+bug/1284148
2014-02-24 16:34:19 +01:00

27 lines
755 B
Common Lisp
Executable File

#!/bin/sh
#|
exec sbcl --script "$0" $@
|#
;;; load the necessary components then parse the command line
;;; and launch the work
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
;; now is the time to load our Quicklisp project
(format t "Loading quicklisp and the pgloader project and its dependencies...")
(terpri)
(with-output-to-string (*standard-output*)
(pushnew :lparallel.with-vector-queue *features*)
(pushnew :lparallel.without-stealing-scheduler *features*)
(ql:quickload '(:pgloader)))
(in-package #:pgloader)
;;; actually call the main function, too
(main SB-EXT:*POSIX-ARGV*)