Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1.  
  2. [pjb@despina org.macports:0 ~]$ sbcl --noinform --non-interactive --no-userinit --eval '(require :asdf)' --load '/tmp/hello.asd' --eval '(asdf:oos (quote asdf:compile-op) "hello")'
  3. ; compiling file "/private/tmp/hello.lisp" (written 08 DEC 2018 01:10:27 AM):
  4. ; compiling (DEFPARAMETER HELLO ...)
  5.  
  6. ; /Users/pjb/.cache/common-lisp/sbcl-1.4.9-macosx-x64/private/tmp/hello-tmpGHU3ALSV.fasl written
  7. ; compilation finished in 0:00:00.001
  8. ; compiling file "/private/tmp/main.lisp" (written 08 DEC 2018 01:17:21 AM):
  9. ; compiling (FORMAT T ...)
  10. ; compiling (FINISH-OUTPUT)
  11.  
  12. ; /Users/pjb/.cache/common-lisp/sbcl-1.4.9-macosx-x64/private/tmp/main-tmpAAURSO1.fasl written
  13. ; compilation finished in 0:00:00.000
  14. [pjb@despina org.macports:0 ~]$ sbcl --noinform --non-interactive --no-userinit --eval '(require :asdf)' --load '/tmp/hello.asd' --eval '(asdf:oos (quote asdf:load-op) "hello")'
  15. Hello World!
  16. [pjb@despina org.macports:0 ~]$ cat /tmp/hello.lisp
  17. (defparameter hello "Hello World!")
  18. [pjb@despina org.macports:0 ~]$ cat /tmp/main.lisp
  19. (format t "~A~%" hello)
  20. (finish-output)
  21. [pjb@despina org.macports:0 ~]$ cat /tmp/hello.asd
  22. (asdf:defsystem "hello"
  23. :description "Hello world."
  24. :author "Pascal J. Bourguignon"
  25. :version "1.2.0"
  26. :license "GPL3"
  27. :depends-on ( #|some common asdf systems may be provided, and loaded here |# )
  28. :components ((:file "hello")
  29. (:file "main" :depends-on ("hello")))
  30. #+asdf-unicode :encoding #+asdf-unicode :utf-8)
  31. [pjb@despina org.macports:0 ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement