Add skeleton

This commit is contained in:
cælōrum spectātrīx 2025-12-01 19:52:38 +01:00
commit 08606832f8
6 changed files with 44 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/**/sample.txt
/**/input.txt

2
1/GNUmakefile Normal file
View file

@ -0,0 +1,2 @@
# -*- makefile-gmake -*-
include ../GNUmakefile.common

2
1/makefile Normal file
View file

@ -0,0 +1,2 @@
# -*- makefile-bsdmake -*-
.include "../makefile.common"

14
GNUmakefile.common Normal file
View file

@ -0,0 +1,14 @@
# -*- makefile-gmake -*-
all:
@echo "\"I use Linux as my operating system,\" I state proudly to the unkempt, bearded man. He swivels"
@echo "around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme"
@echo "precision. \"Actually\", he says with a grin, \"Linux is just the kernel. You use GNU+Linux!\" I"
@echo "don't miss a beat and reply with a smirk, \"I use Alpine, a distro that doesn't include the GNU"
@echo "Coreutils, or any other GNU code. It's Linux, but it's not GNU+Linux.\" The smile quickly drops from"
@echo "the man's face. His body begins convulsing and he foams at the mouth and drops to the floor with a"
@echo "sickly thud. As he writhes around he screams \"I-IT WAS COMPILED WITH GCC! THAT MEANS IT'S STILL GNU!"
@echo "Coolly, I reply \"If windows were compiled with GCC, would that make it GNU?\" I interrupt his"
@echo "response with \"-and work is being made on the kernel to make it more compiler-agnostic. Even if you"
@echo "were correct, you won't be for long.\" With a sickly wheeze, the last of the man's life is ejected"
@echo "from his body. He lies on the floor, cold and limp. I've womansplained him to death."
bmake

6
common.scm Normal file
View file

@ -0,0 +1,6 @@
(define (print . args)
(display (apply string-append args))
(newline))
(define (command-line-arguments)
(cdr (command-line)))

18
makefile.common Normal file
View file

@ -0,0 +1,18 @@
# -*- makefile-bsdmake -*-
INPUTS=sample.txt input.txt
SCHEMES=chicken guile chibi racket gauche loko skint
all: $(SCHEMES)
chicken: main.scm
csi -script main.scm $(INPUTS)
guile: main.scm
guile --no-auto-compile main.scm $(INPUTS)
chibi: main.scm
chibi-scheme main.scm $(INPUTS)
racket: main.scm
racket -I r7rs --script main.scm $(INPUTS)
gauche: main.scm
gosh main.scm $(INPUTS)
loko: main.scm
loko --script main.scm $(INPUTS)
skint: main.scm
skint --script main.scm $(INPUTS)