diff --git a/bbstool.sh b/hackerbase.sh similarity index 95% rename from bbstool.sh rename to hackerbase.sh index f41f424..d03ddfb 100644 --- a/bbstool.sh +++ b/hackerbase.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# bbstool.sh +# hackerbase.sh # # Runs the tool as Scheme script using csi. # @@ -38,6 +38,6 @@ SRP="`chicken-install -repository`" RP=${SD} CHICKEN_REPOSITORY_PATH="$SRP:$RP" csi -q -b \ -I ${SD} \ - ${SD}/bbstool.scm \ + ${SD}/hackerbase.scm \ -- \ "$@" diff --git a/src/Makefile b/src/Makefile index 7522d01..0d074c1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -27,11 +27,11 @@ default: imports .PHONY: static -static: ../bbstool +static: ../hackerbase CSC=csc -BBSTOOL-DEPS=bbstool.scm testing.import.scm listing.import.scm \ +HACKERBASE-DEPS=hackerbase.scm testing.import.scm listing.import.scm \ dictionary.import.scm month.import.scm period.import.scm \ ansi.import.scm command-line.import.scm \ members-base.import.scm primes.import.scm \ @@ -47,7 +47,7 @@ BBSTOOL-DEPS=bbstool.scm testing.import.scm listing.import.scm \ util-string.import.scm util-io.import.scm \ util-list.import.scm util-parser.import.scm texts.import.scm -BBSTOOL-OBJS=bbstool.o testing.o listing.o month.o period.o ansi.o \ +HACKERBASE-OBJS=hackerbase.o testing.o listing.o month.o period.o ansi.o \ dictionary.o command-line.o members-base.o primes.o \ member-record.o configuration.o progress.o table.o cards.o \ members-print.o member-fees.o members-dir.o util-csv.o \ @@ -57,14 +57,18 @@ BBSTOOL-OBJS=bbstool.o testing.o listing.o month.o period.o ansi.o \ util-list.o util-parser.o texts.o .PHONY: imports -imports: $(BBSTOOL-DEPS) +imports: $(HACKERBASE-DEPS) -../bbstool: $(BBSTOOL-OBJS) - $(CSC) -static -o $@ $(BBSTOOL-OBJS) +../hackerbase: $(HACKERBASE-OBJS) + $(CSC) -static -o $@ $(HACKERBASE-OBJS) .PHONY: clean clean: - rm -f *.c *.link *.o *.import.scm ../bbstool + rm -f *.c *.link *.o *.import.scm ../hackerbase + +.PHONY: install +install: static + install -m 0755 ../hackerbase /usr/local/bin/ ################################################################ # Module static and shared object and import source compilation @@ -79,7 +83,7 @@ clean: ################################################################ # Main program -bbstool.o: $(BBSTOOL-DEPS) +hackerbase.o: $(HACKERBASE-DEPS) ################################################################ # Modules diff --git a/src/bbstool.scm b/src/hackerbase.scm similarity index 89% rename from src/bbstool.scm rename to src/hackerbase.scm index b7a0e8f..295c50c 100644 --- a/src/bbstool.scm +++ b/src/hackerbase.scm @@ -1,7 +1,26 @@ ;; -;; bbstool.scm +;; hackerbase.scm ;; -;; Brmburo system - members management tool. +;; Hackerspace Members Database management system. +;; +;; ISC License +;; +;; Copyright 2023 Brmlab, z.s. +;; Dominik Pantůček +;; +;; 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. ;; (import (chicken repl)