File tree 6 files changed +45
-22
lines changed
6 files changed +45
-22
lines changed Original file line number Diff line number Diff line change 4
4
\' # *
5
5
.DS_Store
6
6
\# *
7
- nobot-app
7
+ release /
Original file line number Diff line number Diff line change 6
6
(load " nobot/nobot.asd" )
7
7
(asdf :load-system :nobot )
8
8
9
+ ; ; application parameters
10
+ (defparameter *nobot-application-name* " nobot" )
11
+ (defparameter *nobot-version* " 0.1" )
12
+ (defparameter *nobot-spec-name* " mega-trash" )
13
+
9
14
; ; make image
10
- (sb-ext :save-lisp-and-die
11
- #p " nobot-app"
15
+ (sb-ext :save-lisp-and-die
16
+ (make-pathname
17
+ :directory ' (:relative " release" )
18
+ :name (format nil " ~a -~a -~a "
19
+ *nobot-application-name*
20
+ *nobot-version*
21
+ *nobot-spec-name* )
22
+ :type " bin" )
12
23
:toplevel #' nobot/startup:*run*
13
24
:save-runtime-options t
14
25
:executable t )
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2021 Bohdan Sokolovskyi
2
2
# Author: Bohdan Sokolovskyi <[email protected] >
3
3
4
+ # config variables
5
+ project-dir =nobot/
6
+ SHELL =/bin/bash
7
+
4
8
.PHONY : clean
5
9
6
- project-dir =nobot/
10
+ all : build install
11
+
12
+ build : clean
13
+ mkdir release
14
+ sbcl --disable-debugger \
15
+ --load make-image.lisp
16
+
17
+ help :
18
+ @echo " all build help install uninstall clean"
19
+
20
+ install :
7
21
8
- build :
9
- sbcl --load make-image.lisp
22
+ uninstall :
10
23
11
24
clean :
12
- rm nobot-app || :
13
- (find $( project-dir) -name ' *.fasl' -print0 | xargs -0 rm || :)
25
+ ( rm -rf release || :)
26
+ (find $( project-dir) -name ' *.fasl' -print0 | xargs -0 rm || :)
Original file line number Diff line number Diff line change 26
26
# :define-rule
27
27
# :pack-parse-tree
28
28
# :acacia-packed-result
29
- # :get-parse-tree
30
- # :get-source-type
31
- # :get-source))
29
+ # :acacia- get-parse-tree
30
+ # :acacia- get-source-type
31
+ # :acacia- get-source))
Original file line number Diff line number Diff line change 6
6
(:use :cl )
7
7
(:export # :pack-parse-tree
8
8
# :acacia-packed-result
9
- # :get-parse-tree
10
- # :get-source-type
11
- # :get-source))
9
+ # :acacia- get-parse-tree
10
+ # :acacia- get-source-type
11
+ # :acacia- get-source))
12
12
13
13
(in-package :nobot/botscript/parser/acacia/result-packaging )
14
14
15
15
(defclass acacia-packed-result ()
16
16
((parse-tree
17
17
:type list
18
18
:initarg :parse-tree
19
- :reader get-parse-tree)
19
+ :reader acacia- get-parse-tree)
20
20
(source-type
21
21
:type keyword
22
22
:initarg :source-type
23
- :reader get-source-type)
23
+ :reader acacia- get-source-type)
24
24
(source
25
25
:type string
26
26
:initarg :source
27
- :reader get-source)))
27
+ :reader acacia- get-source)))
28
28
29
29
(defmethod initialize-instance :around ((res acacia-packed-result) &key parse-tree
30
30
source-type
Original file line number Diff line number Diff line change 2
2
; ;;; Author: Bohdan Sokolovskyi <[email protected] >
3
3
4
4
5
- (asdf :defsystem " nobot"
5
+ (asdf :defsystem : nobot
6
6
:class :package-inferred-system
7
7
:defsystem-depends-on (:asdf-package-system )
8
8
:description " Engine for creating chat bots"
9
- :version " 1.0 "
9
+ :version " 0.1 "
10
10
:author " Sokolovskyi Bohdan"
11
11
:depends-on (" nobot/startup"
12
12
" nobot/toplevel"
24
24
" cl-ppcre"
25
25
" unix-opts"
26
26
" yason" )
27
- :in-order-to ((test-op (load-op " nobot/tests" )))
28
- ; ;TODO: change to rewd from string + eval, or another solution
29
- :perform (test-op (o c) (uiop :symbol-call :nobot/tests :run-unit-tests )))
27
+ :in-order-to ((asdf :test-op (asdf :load-op :nobot/tests )))
28
+ :perform (asdf :test-op (o c) (uiop :symbol-call :nobot/tests :run-unit-tests )))
You can’t perform that action at this time.
0 commit comments