1 | ;;; Copyright (C) 2007, 2008 Magnus Henoch |
---|
2 | ;;; |
---|
3 | ;;; This program is free software; you can redistribute it and/or |
---|
4 | ;;; modify it under the terms of the GNU General Public License as |
---|
5 | ;;; published by the Free Software Foundation; either version 2 of the |
---|
6 | ;;; License, or (at your option) any later version. |
---|
7 | ;;; |
---|
8 | ;;; This program is distributed in the hope that it will be useful, |
---|
9 | ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
11 | ;;; General Public License for more details. |
---|
12 | ;;; |
---|
13 | ;;; You should have received a copy of the GNU General Public License |
---|
14 | ;;; along with this program; if not, write to the Free Software |
---|
15 | ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
---|
16 | |
---|
17 | ;; Use this file to create a "darcs" executable using SBCL: |
---|
18 | ;; sbcl --disable-debugger --load dump-sbcl.lisp |
---|
19 | |
---|
20 | (let* ((src-dir (make-pathname :name nil :type nil :defaults *load-truename*)) |
---|
21 | (asdf:*central-registry* (cons src-dir asdf:*central-registry*))) |
---|
22 | (asdf:oos 'asdf:load-op :cl-darcs)) |
---|
23 | |
---|
24 | (in-package :darcs) |
---|
25 | |
---|
26 | (defun run-with-sbcl () |
---|
27 | (sb-ext:quit :unix-status (handle-command-line (cdr sb-ext:*posix-argv*)))) |
---|
28 | |
---|
29 | (proclaim '(optimize debug)) |
---|
30 | (sb-ext:save-lisp-and-die "darcs" |
---|
31 | :executable t |
---|
32 | :toplevel #'run-with-sbcl) |
---|
33 | |
---|
34 | (sb-ext:quit) |
---|