Add skeleton of members base.
This commit is contained in:
parent
9564563199
commit
98a772cee9
4 changed files with 59 additions and 12 deletions
10
Makefile
10
Makefile
|
@ -24,7 +24,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
brmsaptool: brmsaptool.o testing.o listing.o month.o period.o ansi.o \
|
brmsaptool: brmsaptool.o testing.o listing.o month.o period.o ansi.o \
|
||||||
member-file.o dictionary.o command-line.o
|
member-file.o dictionary.o command-line.o \
|
||||||
|
members-base.o
|
||||||
csc -o brmsaptool $^
|
csc -o brmsaptool $^
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
@ -46,7 +47,7 @@ clean:
|
||||||
brmsaptool.o: brmsaptool.scm testing.import.scm listing.import.scm \
|
brmsaptool.o: brmsaptool.scm testing.import.scm listing.import.scm \
|
||||||
dictionary.import.scm month.import.scm period.import.scm \
|
dictionary.import.scm month.import.scm period.import.scm \
|
||||||
ansi.import.scm member-file.import.scm \
|
ansi.import.scm member-file.import.scm \
|
||||||
command-line.import.scm
|
command-line.import.scm members-base.import.scm
|
||||||
|
|
||||||
TESTING-SOURCES=testing.scm
|
TESTING-SOURCES=testing.scm
|
||||||
|
|
||||||
|
@ -89,3 +90,8 @@ COMMAND-LINE-SOURCES=command-line.scm testing.import.scm
|
||||||
|
|
||||||
command-line.o: $(COMMAND-LINE-SOURCES)
|
command-line.o: $(COMMAND-LINE-SOURCES)
|
||||||
command-line.import.scm: $(COMMAND-LINE-SOURCES)
|
command-line.import.scm: $(COMMAND-LINE-SOURCES)
|
||||||
|
|
||||||
|
MEMBERS-BASE-SOURCES=members-base.scm testing.import.scm
|
||||||
|
|
||||||
|
members-base.o: $(MEMBERS-BASE-SOURCES)
|
||||||
|
members-base.import.scm: $(MEMBERS-BASE-SOURCES)
|
||||||
|
|
|
@ -23,15 +23,6 @@
|
||||||
;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
;;
|
;;
|
||||||
|
|
||||||
;(declare (uses testing
|
|
||||||
; listing
|
|
||||||
; dictionary
|
|
||||||
; month
|
|
||||||
; period
|
|
||||||
; member-file
|
|
||||||
; command-line
|
|
||||||
; ansi))
|
|
||||||
|
|
||||||
(import testing
|
(import testing
|
||||||
listing
|
listing
|
||||||
dictionary
|
dictionary
|
||||||
|
@ -39,7 +30,8 @@
|
||||||
period
|
period
|
||||||
member-file
|
member-file
|
||||||
command-line
|
command-line
|
||||||
ansi)
|
ansi
|
||||||
|
members-base)
|
||||||
|
|
||||||
;; Print banner
|
;; Print banner
|
||||||
(print "brmsaptool 0.2 (c) 2023 Brmlab, z.s.")
|
(print "brmsaptool 0.2 (c) 2023 Brmlab, z.s.")
|
||||||
|
@ -53,6 +45,7 @@
|
||||||
(ansi-tests!)
|
(ansi-tests!)
|
||||||
(member-file-tests!)
|
(member-file-tests!)
|
||||||
(command-line-tests!)
|
(command-line-tests!)
|
||||||
|
(members-base-tests!)
|
||||||
(newline)
|
(newline)
|
||||||
|
|
||||||
(command-line
|
(command-line
|
||||||
|
|
|
@ -33,6 +33,7 @@ csi -q -b \
|
||||||
ansi.scm \
|
ansi.scm \
|
||||||
member-file.scm \
|
member-file.scm \
|
||||||
command-line.scm \
|
command-line.scm \
|
||||||
|
members-base.scm \
|
||||||
brmsaptool.scm \
|
brmsaptool.scm \
|
||||||
-- \
|
-- \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
47
members-base.scm
Normal file
47
members-base.scm
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
;;
|
||||||
|
;; members-base.scm
|
||||||
|
;;
|
||||||
|
;; Storage for member files.
|
||||||
|
;;
|
||||||
|
;; ISC License
|
||||||
|
;;
|
||||||
|
;; Copyright 2023 Brmlab, z.s.
|
||||||
|
;; Dominik Pantůček <dominik.pantucek@trustica.cz>
|
||||||
|
;;
|
||||||
|
;; Permission to use, copy, modify, and/or distribute this software
|
||||||
|
;; for any purpose with or without fee is hereby granted, provided
|
||||||
|
;; that the above copyright notice and this permission notice appear
|
||||||
|
;; in all copies.
|
||||||
|
;;
|
||||||
|
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
||||||
|
;; WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||||
|
;; WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||||
|
;; AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
||||||
|
;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||||
|
;; OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
;; NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||||
|
;; CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
;;
|
||||||
|
|
||||||
|
(declare (unit members-base))
|
||||||
|
|
||||||
|
(module
|
||||||
|
members-base
|
||||||
|
(
|
||||||
|
load-members
|
||||||
|
members-base-tests!
|
||||||
|
)
|
||||||
|
|
||||||
|
(import scheme
|
||||||
|
(chicken base)
|
||||||
|
testing)
|
||||||
|
|
||||||
|
(define (load-members)
|
||||||
|
1)
|
||||||
|
|
||||||
|
(define (members-base-tests!)
|
||||||
|
(run-tests
|
||||||
|
members-base
|
||||||
|
))
|
||||||
|
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue