Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gendl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gendl
gendl
Commits
2f06444c
Commit
2f06444c
authored
May 26, 2013
by
Dave Cooper
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'devo'
parents
7b91acc1
cef7a134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
106 deletions
+0
-106
load-gendl.lisp
load-gendl.lisp
+0
-106
No files found.
load-gendl.lisp
deleted
100644 → 0
View file @
7b91acc1
(
cl:in-package
:cl-user
)
;; LOAD-GENDL.LISP
;; Nick Levine, Ravenbrook Limited, 2013-05-17
;;
;; 1. INTRODUCTION
;;
;; The purpose of this document is to oversee the loading of GENDL.
;;
;; This will typically be in a SLIME environment. The function
;; gdl-welcome in gdl.el inserts a cl:load of this file into the new
;; *slime-repl* buffer. Quicklisp won't be present yet but this file
;; takes care of that.
;;
;; If you're outside the SLIME environment, you can still load this
;; file. It's up to you to load quicklisp beforehand. First time you
;; load the GENDL system, it will write a configuration file
;; ("configure.el" in this directory) which will tell future
;; invocations where your lisp image and quicklisp installation are.
;; That sets you up for future loads via SLIME.
;; 2. LOAD GENDL AND DEPENDENCIES; START GENDL RUNNING.
(
let*
((
this-file
*load-pathname*
)
(
gendl
(
make-pathname
:name
nil
:type
nil
:defaults
this-file
)))
;; 1. Locate and load quicklisp - without this we can't load the
;; system or its dependencies. But don't try to reload quicklisp
;; if it's already loaded.
;;
;; Note that if this is the first time load-gendl.lisp has been
;; loaded then "configure.el" won't be found.
#-
quicklisp
(
let
((
configure-file
(
merge-pathnames
"configure.el"
gendl
)))
(
when
(
probe-file
configure-file
)
(
let
(
lisp-invocation
(
path-to-quicklisp-helper
nil
))
(
declare
(
special
lisp-invocation
path-to-quicklisp-helper
))
(
load
configure-file
)
(
if
path-to-quicklisp-helper
(
let
((
path-to-slime-setup
(
merge-pathnames
"setup.lisp"
path-to-quicklisp-helper
)))
(
if
(
probe-file
path-to-slime-setup
)
;; Load quicklisp.
(
load
path-to-slime-setup
)
(
error
"\"~a\" not found. Visit \"~a\" and reset path-to-quicklisp-helper."
path-to-slime-setup
configure-file
)))
(
error
"~s not set in \"~a\"."
'path-to-quicklisp-helper
configure-file
)))))
;; 2. If we were redistributing all our dependencies, this form
;; would tell asdf where to find them.
#+
#:nil
(
asdf:initialize-source-registry
`
(
:source-registry
(
:tree
,
gendl
:inherit-configuration
)))
;; 3. Load gendl plus dependencies (including glime).
(
funcall
(
find-symbol
(
string
'quickload
)
:ql
)
:gendl
)
;; 3a. This is a workaround for https://bugs.launchpad.net/slime/+bug/1175550
;; "#+lispworks Gray slime-output-stream doesn't handle non base-chars"
#+
:lispworks
(
let
((
swank-backend-buffer
(
find-symbol
"BUFFER"
"SWANK-BACKEND"
)))
(
setf
(
slot-value
*standard-output*
swank-backend-buffer
)
(
coerce
(
slot-value
*standard-output*
swank-backend-buffer
)
'lw:simple-text-string
)))
;; 4. Start gendl.
(
let
((
starter
(
find-symbol
(
string
'start-gendl!
)
:gendl
)))
(
funcall
starter
)))
;; A. REFERENCES
;;
;;
;; B. HISTORY
;;
;; 2013-05-17 NDL Created.
;;
;;
;; C. COPYRIGHT
;;
;; Copyright 2013 Genworks International
;;
;; This source file is part of the General-purpose Declarative
;; Language project (GDL).
;;
;; This source file contains free software: you can redistribute it
;; and/or modify it under the terms of the GNU Affero General Public
;; License as published by the Free Software Foundation, either
;; version 3 of the License, or (at your option) any later version.
;;
;; This source file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Affero General Public License for more details.
;;
;; You should have received a copy of the GNU Affero General Public
;; License along with this source file. If not, see
;; <http://www.gnu.org/licenses/>.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment