License date update
[clfswm.git] / contrib / server / load.lisp
blobadbd3ef9eb5698428914feea911d23189f54f96f
1 ;;; --------------------------------------------------------------------------
2 ;;; CLFSWM - FullScreen Window Manager
3 ;;;
4 ;;; --------------------------------------------------------------------------
5 ;;; Documentation: CLFSWM Client
6 ;;; --------------------------------------------------------------------------
7 ;;;
8 ;;; (C) 2015 Philippe Brochard <pbrochard@common-lisp.net>
9 ;;;
10 ;;; This program is free software; you can redistribute it and/or modify
11 ;;; it under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation; either version 3 of the License, or
13 ;;; (at your option) any later version.
14 ;;;
15 ;;; This program is distributed in the hope that it will be useful,
16 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;;; GNU General Public License for more details.
19 ;;;
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with this program; if not, write to the Free Software
22 ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 ;;;
24 ;;; --------------------------------------------------------------------------
26 (defparameter *base-dir* (directory-namestring *load-truename*))
27 (export '*base-dir*)
29 #+CMU
30 (setf ext:*gc-verbose* nil)
32 #+SBCL
33 (require :asdf)
35 #+SBCL
36 (require :sb-posix)
38 #-ASDF
39 (let ((asdf-file (make-pathname :host (pathname-host *base-dir*)
40 :device (pathname-device *base-dir*)
41 :directory (pathname-directory *base-dir*)
42 :name "asdf" :type "lisp")))
43 (if (probe-file asdf-file)
44 (load asdf-file)
45 (load (make-pathname :host (pathname-host *base-dir*)
46 :device (pathname-device *base-dir*)
47 :directory (butlast (pathname-directory *base-dir*))
48 :name "asdf" :type "lisp"))))
50 (push *base-dir* asdf:*central-registry*)
52 (asdf:oos 'asdf:load-op :clfswm-client)
54 (in-package :clfswm-client)
57 (start-client nil)