Skip to content

Commit

Permalink
Use high-level interface of ASDF
Browse files Browse the repository at this point in the history
  • Loading branch information
dochang committed Aug 14, 2017
1 parent 126a9e4 commit d88f2f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Tutorial
--------

----------------------------------------------------------------------
> (asdf:oos 'asdf:load-op :magicffi)
> (asdf:load-system :magicffi)
> (use-package :magicffi)
> (with-open-magic (magic '(:mime-type :symlink))
(magic-load magic)
Expand Down
4 changes: 2 additions & 2 deletions magicffi.asd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(in-package :magicffi/asdf)

(eval-when (:load-toplevel :execute)
(operate 'load-op :cffi-grovel))
(load-system :cffi-grovel))

(defsystem :magicffi
:description "cffi interface to libmagic(3)"
Expand Down Expand Up @@ -36,5 +36,5 @@
(:file :tests)))))

(defmethod perform ((o test-op) (c (eql (find-system :magicffi))))
(operate 'load-op :magicffi/test)
(load-system :magicffi/test)
(funcall (intern "RUN-TESTS" :magicffi/test)))
2 changes: 1 addition & 1 deletion package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(defpackage :magicffi
(:use :cl :cffi)
(:documentation "Usage:
> (asdf:oos 'asdf:load-op :magicffi)
> (asdf:load-system :magicffi)
> (use-package :magicffi)
> (with-open-magic (magic '(:mime-type :symlink))
(magic-load magic)
Expand Down

0 comments on commit d88f2f2

Please sign in to comment.